nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 42 lines 749 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, psutil 6}: 7 8buildPythonPackage rec { 9 pname = "pytest-openfiles"; 10 version = "0.4.0"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "af591422f2bfa95f7690d83aeb8d76bd5421cb8b1dcaf085d58cd92e8d92058d"; 15 }; 16 17 propagatedBuildInputs = [ 18 pytest 19 psutil 20 ]; 21 22 checkInputs = [ 23 pytest 24 ]; 25 26 postConfigure = '' 27 # remove on next release 28 substituteInPlace setup.cfg \ 29 --replace "[pytest]" "[tool:pytest]" 30 ''; 31 32 checkPhase = '' 33 pytest 34 ''; 35 36 meta = with lib; { 37 description = "Pytest plugin for detecting inadvertent open file handles"; 38 homepage = https://astropy.org; 39 license = licenses.bsd3; 40 maintainers = [ maintainers.costrouc ]; 41 }; 42}