summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-pidfile
diff options
context:
space:
mode:
authorlegendofmiracles <30902201+legendofmiracles@users.noreply.github.com>2021-07-06 02:22:28 +0200
committerGitHub <noreply@github.com>2021-07-06 02:22:28 +0200
commit2aae258fd552072eb593ee858e20c278ea0d5ec0 (patch)
tree30b76ef96cbcf1a1e1d10e67ad0acb6d7fd688b0 /pkgs/development/python-modules/python-pidfile
parent46273876941cbd6d59b209ab74a2d9b7ff571f97 (diff)
python3Packages.python-pidfile: init at 3.0.0 (#129272)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/development/python-modules/python-pidfile')
-rw-r--r--pkgs/development/python-modules/python-pidfile/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-pidfile/default.nix b/pkgs/development/python-modules/python-pidfile/default.nix
new file mode 100644
index 000000000000..7ba39341516e
--- /dev/null
+++ b/pkgs/development/python-modules/python-pidfile/default.nix
@@ -0,0 +1,32 @@
+{ 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; [ legendofmiracles ];
+ };
+}