appthreat-depscan: init at 2.1.0

This commit is contained in:
Fabian Affolter 2022-01-22 12:19:00 +01:00
parent 3583e6c24a
commit 5ee1f6334e
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "appthreat-depscan";
version = "2.1.0";
src = fetchFromGitHub {
owner = "AppThreat";
repo = "dep-scan";
rev = "v${version}";
hash = "sha256-HCOS8/jn7BOzDwSpenVGo6QpI/1ey6L1zBucTyqsSY4=";
};
propagatedBuildInputs = with python3.pkgs; [
appthreat-vulnerability-db
defusedxml
pyyaml
rich
];
checkInputs = with python3.pkgs; [
pytestCheckHook
];
postPatch = ''
substituteInPlace pytest.ini \
--replace " --cov-append --cov-report term --cov depscan" ""
'';
preCheck = ''
export HOME=$(mktemp -d);
'';
disabledTests = [
# Assertion Error
"test_query_metadata2"
];
pythonImportsCheck = [
"depscan"
];
meta = with lib; {
description = "Tool to audit dependencies based on known vulnerabilities and advisories";
homepage = "https://github.com/AppThreat/dep-scan";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -200,6 +200,8 @@ with pkgs;
fission = callPackage ../development/tools/fission { };
appthreat-depscan = callPackage ../development/tools/appthreat-depscan { };
authy = callPackage ../applications/misc/authy { };
avro-tools = callPackage ../development/tools/avro-tools { };