From c4d8ecd7933cb930b582dad78c6fa923a484b8ff Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 7 Jan 2025 10:04:58 +0100 Subject: [PATCH] python312Packages.requirements-detector: 1.2.2 -> 1.3.2 Changelog: https://github.com/landscapeio/requirements-detector/releases/tag/1.3.2 --- .../requirements-detector/default.nix | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/requirements-detector/default.nix b/pkgs/development/python-modules/requirements-detector/default.nix index 3a002b62f6cc..5fced4a51b12 100644 --- a/pkgs/development/python-modules/requirements-detector/default.nix +++ b/pkgs/development/python-modules/requirements-detector/default.nix @@ -3,34 +3,42 @@ astroid, buildPythonPackage, fetchFromGitHub, + fetchpatch, packaging, poetry-core, semver, pytestCheckHook, pythonOlder, - toml, }: buildPythonPackage rec { pname = "requirements-detector"; - version = "1.2.2"; + version = "1.3.2"; pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.12"; src = fetchFromGitHub { owner = "landscapeio"; repo = "requirements-detector"; tag = version; - hash = "sha256-qmrHFQRypBJOI1N6W/Dtc5ss9JGqoPhFlbqrLHcb6vc="; + hash = "sha256-IWVIYDE/5/9sFgOFftRE4nmY0IDJ0oOvvaGMODkozQg="; }; + patches = [ + # Remove duplicate import, https://github.com/prospector-dev/requirements-detector/pull/53 + (fetchpatch { + name = "remove-import.patch"; + url = "https://github.com/prospector-dev/requirements-detector/commit/be412669f53a78b3376cac712c84f158fbb1374a.patch"; + hash = "sha256-IskSs3BZ1pTeqjtCUksC8wL+3fOYqAi7nw/QD0zsie4="; + }) + ]; + build-system = [ poetry-core ]; dependencies = [ astroid packaging - toml semver ]; @@ -45,7 +53,5 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ kamadorueda ]; mainProgram = "detect-requirements"; - # https://github.com/landscapeio/requirements-detector/issues/48 - broken = versionAtLeast astroid.version "3"; }; }