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 buildInputs = [ pytest ]; 24 25 propagatedBuildInputs = [ 26 psutil 27 ]; 28 29 checkInputs = [ pytestCheckHook ]; 30 31 meta = with lib; { 32 description = "Pytest plugin for detecting inadvertent open file handles"; 33 homepage = "https://astropy.org"; 34 license = licenses.bsd3; 35 maintainers = [ maintainers.costrouc ]; 36 }; 37}