Commit c4d8ecd7 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.requirements-detector: 1.2.2 -> 1.3.2

parent 72bf900c
Loading
Loading
Loading
Loading
+13 −7
Original line number Diff line number Diff line
@@ -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";
  };
}