python3Packages.pytest-helpers-namespace: add missing dependency

This commit is contained in:
Austin Butler 2021-04-29 19:34:45 -07:00
parent 6aa9d635d4
commit 15b116195d

View file

@ -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";