diff options
| author | Jonathan Ringer <jonringer117@gmail.com> | 2020-06-08 12:55:14 -0700 |
|---|---|---|
| committer | Frederik Rietdijk <fridh@fridh.nl> | 2020-06-11 10:00:27 +0200 |
| commit | cc6e701b33f0f8275822cc7cb9bf972abc800983 (patch) | |
| tree | aa0227baea605c5b9aa5c6f3733e4c2a8e1838a6 /pkgs/development/python-modules | |
| parent | 175f317277fda2dd3d0a468549e73cf7bb603436 (diff) | |
python3Packages.pytest-openfiles: fix build
Diffstat (limited to 'pkgs/development/python-modules')
| -rw-r--r-- | pkgs/development/python-modules/pytest-openfiles/default.nix | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/pytest-openfiles/default.nix b/pkgs/development/python-modules/pytest-openfiles/default.nix index de20a35d30a8..64fd8422ea8d 100644 --- a/pkgs/development/python-modules/pytest-openfiles/default.nix +++ b/pkgs/development/python-modules/pytest-openfiles/default.nix @@ -2,7 +2,9 @@ , buildPythonPackage , fetchPypi , pytest +, pytestCheckHook , psutil +, setuptools_scm }: buildPythonPackage rec { @@ -14,24 +16,14 @@ buildPythonPackage rec { sha256 = "179c2911d8aee3441fee051aba08e0d9b4dab61b829ae4811906d5c49a3b0a58"; }; + nativeBuildInputs = [ setuptools_scm ]; + propagatedBuildInputs = [ pytest psutil ]; - checkInputs = [ - pytest - ]; - - postConfigure = '' - # remove on next release - substituteInPlace setup.cfg \ - --replace "[pytest]" "[tool:pytest]" - ''; - - checkPhase = '' - pytest - ''; + checkInputs = [ pytestCheckHook ]; meta = with lib; { description = "Pytest plugin for detecting inadvertent open file handles"; |
