nixpkgs-suyu/pkgs/development/python-modules/pyserial-asyncio/default.nix
Martin Weinelt 20d24d0b15 python3Packages.pyserial-asyncio: propagate pyserial
Fixes errors like this:

ERROR: Could not find a version that satisfies the requirement pyserial (from pyserial-asyncio>=0.4->pysml==0.0.2) (from versions: none)
2020-11-02 10:39:44 -08:00

24 lines
629 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, isPy3k
, pyserial }:
buildPythonPackage rec {
pname = "pyserial-asyncio";
version = "0.4";
disabled = !isPy3k; # Doesn't support python older than 3.4
src = fetchPypi {
inherit pname version;
sha256 = "1vlsb0d03krxlj7vpvyhpinnyxyy8s3lk5rs8ba2932dhyl7f1n4";
};
propagatedBuildInputs = [ pyserial ];
meta = with stdenv.lib; {
description = "asyncio extension package for pyserial";
homepage = "https://github.com/pyserial/pyserial-asyncio";
license = licenses.bsd3;
maintainers = with maintainers; [ etu ];
platforms = platforms.linux;
};
}