diff --git a/pkgs/development/python-modules/pyserial-asyncio/default.nix b/pkgs/development/python-modules/pyserial-asyncio/default.nix new file mode 100644 index 00000000000..c299ad8acae --- /dev/null +++ b/pkgs/development/python-modules/pyserial-asyncio/default.nix @@ -0,0 +1,24 @@ +{ stdenv, buildPythonPackage, fetchPypi, isPy3k +, pyserial }: + +buildPythonPackage rec { + pname = "pyserial-asyncio"; + version = "0.4"; + + disabled = !isPy3k; # Doesn't support python older than 3.4 + + buildInputs = [ pyserial ]; + + src = fetchPypi { + inherit pname version; + sha256 = "1vlsb0d03krxlj7vpvyhpinnyxyy8s3lk5rs8ba2932dhyl7f1n4"; + }; + + 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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2edaf87cbaa..24cb8d33a62 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4814,6 +4814,8 @@ in { pyserial = callPackage ../development/python-modules/pyserial {}; + pyserial-asyncio = callPackage ../development/python-modules/pyserial-asyncio { }; + pysonos = callPackage ../development/python-modules/pysonos {}; pymongo = callPackage ../development/python-modules/pymongo {};