python3Packages.pytest-openfiles: fix build
This commit is contained in:
parent
175f317277
commit
cc6e701b33
@ -2,7 +2,9 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pytest
|
, pytest
|
||||||
|
, pytestCheckHook
|
||||||
, psutil
|
, psutil
|
||||||
|
, setuptools_scm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -14,24 +16,14 @@ buildPythonPackage rec {
|
|||||||
sha256 = "179c2911d8aee3441fee051aba08e0d9b4dab61b829ae4811906d5c49a3b0a58";
|
sha256 = "179c2911d8aee3441fee051aba08e0d9b4dab61b829ae4811906d5c49a3b0a58";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pytest
|
pytest
|
||||||
psutil
|
psutil
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [ pytestCheckHook ];
|
||||||
pytest
|
|
||||||
];
|
|
||||||
|
|
||||||
postConfigure = ''
|
|
||||||
# remove on next release
|
|
||||||
substituteInPlace setup.cfg \
|
|
||||||
--replace "[pytest]" "[tool:pytest]"
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
pytest
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Pytest plugin for detecting inadvertent open file handles";
|
description = "Pytest plugin for detecting inadvertent open file handles";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user