Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 36 lines 704 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, pytest 6, pytestCheckHook 7, psutil 8, setuptools_scm 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-openfiles"; 13 version = "0.5.0"; 14 disabled = isPy27; # abandoned 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "179c2911d8aee3441fee051aba08e0d9b4dab61b829ae4811906d5c49a3b0a58"; 19 }; 20 21 nativeBuildInputs = [ setuptools_scm ]; 22 23 propagatedBuildInputs = [ 24 pytest 25 psutil 26 ]; 27 28 checkInputs = [ pytestCheckHook ]; 29 30 meta = with lib; { 31 description = "Pytest plugin for detecting inadvertent open file handles"; 32 homepage = "https://astropy.org"; 33 license = licenses.bsd3; 34 maintainers = [ maintainers.costrouc ]; 35 }; 36}