From 9ae8c25fb46985e22821103ab9f678a10bd586bf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 5 Mar 2025 09:26:41 +0100 Subject: [PATCH] python313Packages.whispers: adjust inputs --- .../python-modules/whispers/default.nix | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/whispers/default.nix b/pkgs/development/python-modules/whispers/default.nix index a79695c41603..01a41c651830 100644 --- a/pkgs/development/python-modules/whispers/default.nix +++ b/pkgs/development/python-modules/whispers/default.nix @@ -1,22 +1,24 @@ { lib, - astroid, beautifulsoup4, buildPythonPackage, crossplane, fetchFromGitHub, jellyfish, jproperties, + jsonschema-specifications, + jsonschema, luhn, lxml, pytest-mock, pytestCheckHook, pythonOlder, pyyaml, - wrapt, semgrep, setuptools, six, + soupsieve, + wrapt, }: buildPythonPackage rec { @@ -24,7 +26,7 @@ buildPythonPackage rec { version = "2.4.0"; pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.1"; src = fetchFromGitHub { owner = "adeptex"; @@ -38,28 +40,23 @@ buildPythonPackage rec { --replace-fail '"pytest-runner"' "" ''; - pythonRelaxDeps = [ - "jellyfish" - "lxml" - "pyyaml" - "semgrep" - "six" - "wrapt" - ]; + pythonRelaxDeps = true; build-system = [ setuptools ]; dependencies = [ - astroid beautifulsoup4 crossplane jellyfish jproperties + jsonschema + jsonschema-specifications luhn lxml pyyaml semgrep six + soupsieve wrapt ]; @@ -69,14 +66,14 @@ buildPythonPackage rec { ]; disabledTestPaths = [ - # pinning tests highly sensitive to semgrep version + # Pinning tests highly sensitive to semgrep version "tests/unit/plugins/test_semgrep.py" ]; preCheck = '' - # pinning test highly sensitive to semgrep version + # Pinning test highly sensitive to semgrep version substituteInPlace tests/unit/test_main.py \ - --replace-fail '("--ast", 421),' "" + --replace-fail '("--ast", 434),' "" # Some tests need the binary available in PATH export PATH=$out/bin:$PATH @@ -88,7 +85,7 @@ buildPythonPackage rec { description = "Tool to identify hardcoded secrets in static structured text"; homepage = "https://github.com/adeptex/whispers"; changelog = "https://github.com/adeptex/whispers/releases/tag/${src.tag}"; - license = with licenses; [ asl20 ]; + license = licenses.asl20; maintainers = with maintainers; [ fab ]; mainProgram = "whispers"; };