1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 psutil, 6}: 7 8buildPythonPackage rec { 9 pname = "python-pidfile"; 10 version = "3.1.1"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-pgQBL2iagsHMRFEKI85ZwyaIL7kcIftAy6s+lX958M0="; 16 }; 17 18 propagatedBuildInputs = [ psutil ]; 19 20 pythonImportsCheck = [ "pidfile" ]; 21 22 # no tests on the github mirror of the source code 23 # see this: https://github.com/mosquito/python-pidfile/issues/7 24 doCheck = false; 25 26 meta = with lib; { 27 description = "Python context manager for managing pid files"; 28 homepage = "https://github.com/mosquito/python-pidfile"; 29 license = with licenses; [ mit ]; 30 maintainers = with maintainers; [ lom ]; 31 }; 32}