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 { buildPythonPackage
, fetchFromGitHub , fetchPypi
, pytest , pytestCheckHook
, isPy27
, lib , lib
, setuptools
, setuptools-declarative-requirements
, setuptools-scm
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytest-helpers-namespace"; pname = "pytest-helpers-namespace";
version = "2021.3.24"; version = "2021.3.24";
disabled = isPy27;
src = fetchFromGitHub { src = fetchPypi {
owner = "saltstack"; inherit pname version;
repo = pname; sha256 = "0pyj2d45zagmzlajzqdnkw5yz8k49pkihbydsqkzm413qnkzb38q";
rev = version;
sha256 = "0ikwiwp9ycgg7px78nxdkqvg7j97krb6vzqlb8fq8fvbwrj4q4v2";
}; };
buildInputs = [ pytest ]; nativeBuildInputs = [ setuptools setuptools-declarative-requirements setuptools-scm ];
checkInputs = [ pytest ]; checkInputs = [ pytestCheckHook ];
checkPhase = '' pythonImportsCheck = [ "pytest_helpers_namespace" ];
pytest
'';
# The tests fail with newest pytest. They passed with pytest_3, which no longer exists
doCheck = false;
meta = with lib; { meta = with lib; {
homepage = "https://github.com/saltstack/pytest-helpers-namespace"; homepage = "https://github.com/saltstack/pytest-helpers-namespace";