depot/third_party/nixpkgs/pkgs/development/python-modules/python-pidfile/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

32 lines
710 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, psutil
}:
buildPythonPackage rec {
pname = "python-pidfile";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-HhCX30G8dfV0WZ/++J6LIO/xvfyRkdPtJkzC2ulUKdA=";
};
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 ];
};
}