python313Packages.whispers: adjust inputs (#387233)
This commit is contained in:
@@ -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";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user