pythonPackages.pytest-openfiles: init at 0.3.2

This commit is contained in:
Chris Ostrouchov 2019-07-15 11:39:44 -04:00 committed by Frederik Rietdijk
parent e175b841f8
commit 3291b8dadf
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, psutil
}:
buildPythonPackage rec {
pname = "pytest-openfiles";
version = "0.3.2";
src = fetchPypi {
inherit pname version;
sha256 = "e51c91889eb9e4c75f47735efc57a1435f3f1182463600ba7bce7f2556a46884";
};
propagatedBuildInputs = [
pytest
psutil
];
checkInputs = [
pytest
];
postConfigure = ''
# remove on next release
substituteInPlace setup.cfg \
--replace "[pytest]" "[tool:pytest]"
'';
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Pytest plugin for detecting inadvertent open file handles";
homepage = https://astropy.org;
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}

View File

@ -1935,6 +1935,8 @@ in {
pytest-mock = callPackage ../development/python-modules/pytest-mock { };
pytest-openfiles = callPackage ../development/python-modules/pytest-openfiles { };
pytest-timeout = callPackage ../development/python-modules/pytest-timeout { };
pytest-warnings = callPackage ../development/python-modules/pytest-warnings { };