From 2aae258fd552072eb593ee858e20c278ea0d5ec0 Mon Sep 17 00:00:00 2001 From: legendofmiracles <30902201+legendofmiracles@users.noreply.github.com> Date: Tue, 6 Jul 2021 02:22:28 +0200 Subject: [PATCH] python3Packages.python-pidfile: init at 3.0.0 (#129272) Co-authored-by: Sandro --- .../python-modules/python-pidfile/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/python-pidfile/default.nix 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6aa399b467ac..871617752b90 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7063,6 +7063,8 @@ in { python-picnic-api = callPackage ../development/python-modules/python-picnic-api { }; + python-pidfile = callPackage ../development/python-modules/python-pidfile { }; + python-pipedrive = callPackage ../development/python-modules/python-pipedrive { }; python-pkcs11 = callPackage ../development/python-modules/python-pkcs11 { };