blob: daa55f91cd292356e0e646777b6de10431f04434 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, psutil
}:
buildPythonPackage rec {
pname = "pytest-openfiles";
version = "0.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "af591422f2bfa95f7690d83aeb8d76bd5421cb8b1dcaf085d58cd92e8d92058d";
};
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 ];
};
}
|