From c2e73ebc70f9318f45fe5063eed0969773af35a7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 11 May 2022 13:22:40 +0200 Subject: [PATCH] python310Packages.pip-requirements-parser: init at 31.2.0 --- .../pip-requirements-parser/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/pip-requirements-parser/default.nix diff --git a/pkgs/development/python-modules/pip-requirements-parser/default.nix b/pkgs/development/python-modules/pip-requirements-parser/default.nix new file mode 100644 index 000000000000..d4246d302a27 --- /dev/null +++ b/pkgs/development/python-modules/pip-requirements-parser/default.nix @@ -0,0 +1,48 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, packaging +, pytestCheckHook +, pythonOlder +, setuptools-scm +}: + +buildPythonPackage rec { + pname = "pip-requirements-parser"; + version = "31.2.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "nexB"; + repo = pname; + rev = "v${version}"; + hash = "sha256-i4hw3tS4i2ek2JzcDiGo5aFFJ9J2JJ9MB5vxDhOilb0="; + }; + + dontConfigure = true; + + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = [ + packaging + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pip_requirements_parser" + ]; + + meta = with lib; { + description = "Module to parse pip requirements"; + homepage = "https://github.com/nexB/pip-requirements-parser"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8ebd87e812a1..e1bd721657b9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6340,6 +6340,8 @@ in { pip-tools = callPackage ../development/python-modules/pip-tools { }; + pip-requirements-parser = callPackage ../development/python-modules/pip-requirements-parser { }; + pipx = callPackage ../development/python-modules/pipx { }; pivy = callPackage ../development/python-modules/pivy {