From e839e96dabadd1d8bd36ff84d347e58b19ec0c9a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 17 Apr 2021 22:53:19 +0200 Subject: [PATCH] python3Packages.pur: init at 5.4.0 --- .../python-modules/pur/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/pur/default.nix diff --git a/pkgs/development/python-modules/pur/default.nix b/pkgs/development/python-modules/pur/default.nix new file mode 100644 index 000000000000..7d79be68b600 --- /dev/null +++ b/pkgs/development/python-modules/pur/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, click +, fetchFromGitHub +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pur"; + version = "5.4.0"; + + src = fetchFromGitHub { + owner = "alanhamlett"; + repo = "pip-update-requirements"; + rev = version; + sha256 = "1p2g0kz9l0rb59b3rkclb6wwidc93kwqh2hm4xc22b1w9r946six"; + }; + + propagatedBuildInputs = [ + click + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "pur" ]; + + meta = with lib; { + description = "Python library for update and track the requirements"; + homepage = "https://github.com/alanhamlett/pip-update-requirements"; + license = with licenses; [ bsd2 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 70e06433e920..0cfb11e7ec6c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5480,6 +5480,8 @@ in { pulsectl = callPackage ../development/python-modules/pulsectl { }; + pur = callPackage ../development/python-modules/pur { }; + pure-cdb = callPackage ../development/python-modules/pure-cdb { }; pure-eval = callPackage ../development/python-modules/pure-eval { };