lol

python3Packages.pyserial-asyncio: add pythonImportsCheck

+15 -5
+15 -5
pkgs/development/python-modules/pyserial-asyncio/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, isPy3k 2 - , pyserial }: 3 4 buildPythonPackage rec { 5 pname = "pyserial-asyncio"; 6 version = "0.6"; 7 8 - disabled = !isPy3k; # Doesn't support python older than 3.4 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "sha256-tgMpI+BenXXsF6WvmphCnEbSg5rfr4BgTVLg+qzXoy8="; 13 }; 14 15 - propagatedBuildInputs = [ pyserial ]; 16 17 meta = with lib; { 18 - description = "asyncio extension package for pyserial"; 19 homepage = "https://github.com/pyserial/pyserial-asyncio"; 20 license = licenses.bsd3; 21 maintainers = with maintainers; [ etu ];
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pythonOlder 5 + , pyserial 6 + }: 7 8 buildPythonPackage rec { 9 pname = "pyserial-asyncio"; 10 version = "0.6"; 11 12 + disabled = pythonOlder "3.5"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "sha256-tgMpI+BenXXsF6WvmphCnEbSg5rfr4BgTVLg+qzXoy8="; 17 }; 18 19 + propagatedBuildInputs = [ 20 + pyserial 21 + ]; 22 + 23 + pythonImportsCheck = [ 24 + "serial_asyncio" 25 + ]; 26 27 meta = with lib; { 28 + description = "Asyncio extension package for pyserial"; 29 homepage = "https://github.com/pyserial/pyserial-asyncio"; 30 license = licenses.bsd3; 31 maintainers = with maintainers; [ etu ];