diff options
Diffstat (limited to 'pkgs/development/python-modules/requirements-detector')
-rw-r--r-- | pkgs/development/python-modules/requirements-detector/default.nix | 45 |
1 files changed, 18 insertions, 27 deletions
diff --git a/pkgs/development/python-modules/requirements-detector/default.nix b/pkgs/development/python-modules/requirements-detector/default.nix index aab180853d5a9..4106b7cbf01f2 100644 --- a/pkgs/development/python-modules/requirements-detector/default.nix +++ b/pkgs/development/python-modules/requirements-detector/default.nix @@ -1,14 +1,14 @@ -{ lib -, astroid -, buildPythonPackage -, fetchFromGitHub -, packaging -, poetry-core -, semver -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, toml +{ + lib, + astroid, + buildPythonPackage, + fetchFromGitHub, + packaging, + poetry-core, + semver, + pytestCheckHook, + pythonOlder, + toml, }: buildPythonPackage rec { @@ -25,36 +25,27 @@ buildPythonPackage rec { hash = "sha256-qmrHFQRypBJOI1N6W/Dtc5ss9JGqoPhFlbqrLHcb6vc="; }; - pythonRelaxDeps = [ - "astroid" - ]; - - nativeBuildInputs = [ - poetry-core - pythonRelaxDepsHook - ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ astroid packaging toml semver ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "requirements_detector" - ]; + pythonImportsCheck = [ "requirements_detector" ]; meta = with lib; { description = "Python tool to find and list requirements of a Python project"; - mainProgram = "detect-requirements"; homepage = "https://github.com/landscapeio/requirements-detector"; changelog = "https://github.com/landscapeio/requirements-detector/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ kamadorueda ]; + mainProgram = "detect-requirements"; + # https://github.com/landscapeio/requirements-detector/issues/48 + broken = versionAtLeast astroid.version "3"; }; } |