Unverified Commit 8ebf0d2b authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.whispers: adjust inputs (#387233)

parents e24cc572 9ae8c25f
Loading
Loading
Loading
Loading
+13 −16
Original line number Diff line number Diff line
{
  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";
  };