diff --git a/pkgs/development/python-modules/ciscomobilityexpress/default.nix b/pkgs/development/python-modules/ciscomobilityexpress/default.nix index 502d189c17dc..fc2f4d186d96 100644 --- a/pkgs/development/python-modules/ciscomobilityexpress/default.nix +++ b/pkgs/development/python-modules/ciscomobilityexpress/default.nix @@ -4,7 +4,7 @@ fetchPypi, setuptools, requests, - python, + pytestCheckHook, }: buildPythonPackage (finalAttrs: { @@ -23,10 +23,7 @@ buildPythonPackage (finalAttrs: { dependencies = [ requests ]; - # tests directory is set up, but has no tests - checkPhase = '' - ${python.interpreter} -m unittest - ''; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "ciscomobilityexpress" ];