diff --git a/pkgs/development/python-modules/canmatrix/default.nix b/pkgs/development/python-modules/canmatrix/default.nix index 6e487b58cff..8ffacc1a99d 100644 --- a/pkgs/development/python-modules/canmatrix/default.nix +++ b/pkgs/development/python-modules/canmatrix/default.nix @@ -13,19 +13,19 @@ , xlrd , XlsxWriter , pyyaml -, pytest +, pytestCheckHook }: buildPythonPackage rec { pname = "canmatrix"; - version = "0.9.1"; + version = "0.9.3"; # uses fetchFromGitHub as PyPi release misses test/ dir src = fetchFromGitHub { owner = "ebroecker"; repo = pname; rev = version; - sha256 = "129lcchq45h8wqjvvn0rwpbmih4m0igass2cx7a21z94li97hcia"; + sha256 = "sha256-9FupG1VmROgsxYhsafQYPPqG0xEOAYYK8QDOIBNzE0Y="; }; propagatedBuildInputs = [ @@ -48,14 +48,11 @@ buildPythonPackage rec { --replace "version = versioneer.get_version()" "version = \"${version}\"" ''; - checkInputs = [ - pytest - ]; - + checkInputs = [ pytestCheckHook ]; # long_envvar_name_imports requires stable key value pair ordering - checkPhase = '' - pytest -s src/canmatrix -k 'not long_envvar_name_imports' - ''; + pytestFlagsArray = [ "-s src/canmatrix" ]; + disabledTests = [ "long_envvar_name_imports" ]; + pythonImportsCheck = [ "canmatrix" ]; meta = with lib; { homepage = "https://github.com/ebroecker/canmatrix"; diff --git a/pkgs/development/python-modules/canopen/default.nix b/pkgs/development/python-modules/canopen/default.nix index 28f3a74a495..8925c1cc8a4 100644 --- a/pkgs/development/python-modules/canopen/default.nix +++ b/pkgs/development/python-modules/canopen/default.nix @@ -29,6 +29,8 @@ buildPythonPackage rec { pytestCheckHook ]; + pythonImportsCheck = [ "canopen" ]; + meta = with lib; { homepage = "https://github.com/christiansandberg/canopen/"; description = "CANopen stack implementation";