summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-helpers-namespace/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pytest-helpers-namespace/default.nix')
-rw-r--r--pkgs/development/python-modules/pytest-helpers-namespace/default.nix28
1 files changed, 13 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/pytest-helpers-namespace/default.nix b/pkgs/development/python-modules/pytest-helpers-namespace/default.nix
index 43ef2a1339f7..b405afea2154 100644
--- a/pkgs/development/python-modules/pytest-helpers-namespace/default.nix
+++ b/pkgs/development/python-modules/pytest-helpers-namespace/default.nix
@@ -1,30 +1,28 @@
{ buildPythonPackage
-, fetchFromGitHub
-, pytest
+, fetchPypi
+, pytestCheckHook
+, isPy27
, lib
+, setuptools
+, setuptools-declarative-requirements
+, setuptools-scm
}:
buildPythonPackage rec {
pname = "pytest-helpers-namespace";
version = "2021.3.24";
+ disabled = isPy27;
- src = fetchFromGitHub {
- owner = "saltstack";
- repo = pname;
- rev = version;
- sha256 = "0ikwiwp9ycgg7px78nxdkqvg7j97krb6vzqlb8fq8fvbwrj4q4v2";
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "0pyj2d45zagmzlajzqdnkw5yz8k49pkihbydsqkzm413qnkzb38q";
};
- buildInputs = [ pytest ];
+ nativeBuildInputs = [ setuptools setuptools-declarative-requirements setuptools-scm ];
- checkInputs = [ pytest ];
+ checkInputs = [ pytestCheckHook ];
- checkPhase = ''
- pytest
- '';
-
- # The tests fail with newest pytest. They passed with pytest_3, which no longer exists
- doCheck = false;
+ pythonImportsCheck = [ "pytest_helpers_namespace" ];
meta = with lib; {
homepage = "https://github.com/saltstack/pytest-helpers-namespace";