depot/third_party/nixpkgs/pkgs/development/python-modules/python-pidfile/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

32 lines
733 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
psutil,
}:
buildPythonPackage rec {
pname = "python-pidfile";
version = "3.1.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-pgQBL2iagsHMRFEKI85ZwyaIL7kcIftAy6s+lX958M0=";
};
propagatedBuildInputs = [ psutil ];
pythonImportsCheck = [ "pidfile" ];
# no tests on the github mirror of the source code
# see this: https://github.com/mosquito/python-pidfile/issues/7
doCheck = false;
meta = with lib; {
description = "Python context manager for managing pid files";
homepage = "https://github.com/mosquito/python-pidfile";
license = with licenses; [ mit ];
maintainers = with maintainers; [ lom ];
};
}