diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pyserial-asyncio/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pyserial-asyncio/default.nix | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pyserial-asyncio/default.nix b/nixpkgs/pkgs/development/python-modules/pyserial-asyncio/default.nix index 54f3f80a3f8f..c7990adb4643 100644 --- a/nixpkgs/pkgs/development/python-modules/pyserial-asyncio/default.nix +++ b/nixpkgs/pkgs/development/python-modules/pyserial-asyncio/default.nix @@ -1,21 +1,31 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k -, pyserial }: +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, pyserial +}: buildPythonPackage rec { pname = "pyserial-asyncio"; - version = "0.5"; + version = "0.6"; - disabled = !isPy3k; # Doesn't support python older than 3.4 + disabled = pythonOlder "3.5"; src = fetchPypi { inherit pname version; - sha256 = "1641e5433a866eeaf6464b3ab88b741e7a89dd8cd0f851b3343b15f425138d33"; + sha256 = "sha256-tgMpI+BenXXsF6WvmphCnEbSg5rfr4BgTVLg+qzXoy8="; }; - propagatedBuildInputs = [ pyserial ]; + propagatedBuildInputs = [ + pyserial + ]; + + pythonImportsCheck = [ + "serial_asyncio" + ]; meta = with lib; { - description = "asyncio extension package for pyserial"; + description = "Asyncio extension package for pyserial"; homepage = "https://github.com/pyserial/pyserial-asyncio"; license = licenses.bsd3; maintainers = with maintainers; [ etu ]; |