2019-07-15 16:39:44 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-16 22:12:30 +01:00
|
|
|
, isPy27
|
2019-07-15 16:39:44 +01:00
|
|
|
, pytest
|
2020-06-08 20:55:14 +01:00
|
|
|
, pytestCheckHook
|
2019-07-15 16:39:44 +01:00
|
|
|
, psutil
|
2020-06-08 20:55:14 +01:00
|
|
|
, setuptools_scm
|
2019-07-15 16:39:44 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-openfiles";
|
2020-06-06 07:47:27 +01:00
|
|
|
version = "0.5.0";
|
2020-06-16 22:12:30 +01:00
|
|
|
disabled = isPy27; # abandoned
|
2019-07-15 16:39:44 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:27 +01:00
|
|
|
sha256 = "179c2911d8aee3441fee051aba08e0d9b4dab61b829ae4811906d5c49a3b0a58";
|
2019-07-15 16:39:44 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 20:55:14 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
2019-07-15 16:39:44 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytest
|
|
|
|
psutil
|
|
|
|
];
|
|
|
|
|
2020-06-08 20:55:14 +01:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2019-07-15 16:39:44 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pytest plugin for detecting inadvertent open file handles";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://astropy.org";
|
2019-07-15 16:39:44 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|