diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix index 4c45d9603be82..b3c609fc23252 100644 --- a/pkgs/development/interpreters/python/mk-python-derivation.nix +++ b/pkgs/development/interpreters/python/mk-python-derivation.nix @@ -309,7 +309,7 @@ let # Python packages don't have a checkPhase, only an installCheckPhase doCheck = false; - doInstallCheck = attrs.doCheck or true; + doInstallCheck = doCheck; nativeInstallCheckInputs = [ ] ++ optionals (format' == "setuptools") [ # Longer-term we should get rid of this and require diff --git a/pkgs/development/python-modules/pytest-datadir/default.nix b/pkgs/development/python-modules/pytest-datadir/default.nix index 4adaee73ceaee..32e3742644fa9 100644 --- a/pkgs/development/python-modules/pytest-datadir/default.nix +++ b/pkgs/development/python-modules/pytest-datadir/default.nix @@ -28,6 +28,8 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; + doCheck = true; + pythonImportsCheck = [ "pytest_datadir" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/sphinxcontrib-jquery/default.nix b/pkgs/development/python-modules/sphinxcontrib-jquery/default.nix index fef662c85daef..74b0a8a24f5c2 100644 --- a/pkgs/development/python-modules/sphinxcontrib-jquery/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-jquery/default.nix @@ -33,6 +33,8 @@ buildPythonPackage rec { }) ]; + doCheck = true; + nativeBuildInputs = [ flit-core ];