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