2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
psutil,
|
2021-07-14 22:03:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-pidfile";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "3.1.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-pgQBL2iagsHMRFEKI85ZwyaIL7kcIftAy6s+lX958M0=";
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ psutil ];
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
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 ];
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ lom ];
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
}
|