2019-07-15 17:39:44 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, psutil
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-openfiles";
|
2019-10-24 08:47:45 +02:00
|
|
|
version = "0.4.0";
|
2019-07-15 17:39:44 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 08:47:45 +02:00
|
|
|
sha256 = "af591422f2bfa95f7690d83aeb8d76bd5421cb8b1dcaf085d58cd92e8d92058d";
|
2019-07-15 17:39:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://astropy.org";
|
2019-07-15 17:39:44 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|