Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
84 lines
2.2 KiB
Nix
84 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
writableTmpDirAsHomeHook,
|
|
makeWrapper,
|
|
cdxgen,
|
|
nixosTests,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "dep-scan";
|
|
version = "6.0.0b3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "owasp-dep-scan";
|
|
repo = "dep-scan";
|
|
tag = "v${version}";
|
|
hash = "sha256-GdrFsECcBZ2J47ojM33flqOtrY3avchGpsZk6pt8Aks=";
|
|
};
|
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
dependencies = with python3Packages; [
|
|
appthreat-vulnerability-db
|
|
custom-json-diff
|
|
cvss
|
|
defusedxml
|
|
ds-analysis-lib
|
|
ds-reporting-lib
|
|
ds-xbom-lib
|
|
jinja2
|
|
oras
|
|
packageurl-python
|
|
pdfkit
|
|
pygithub
|
|
pyyaml
|
|
quart
|
|
rich
|
|
toml
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
httpretty
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "depscan" ];
|
|
|
|
disabledTests = [
|
|
# Test is not present
|
|
"test_query_metadata2"
|
|
];
|
|
|
|
# depscan --src shiftleft/scan-slim -o containertests -t docker
|
|
#
|
|
# WARNING [2025-07-28 20:17:35,654] cdxgen command not found. Please install using npm install @cyclonedx/cdxgen or set PATH variable
|
|
# WARNING [2025-07-28 20:17:35,654] /nix/store/56bxjw4rgdqa82f61w70z92qq6b14ass-dep-scan-5.5.0/lib/python3.13/site-packages/depscan/lib/local_bin/cdxgen command not found. Please install using npm install @cyclonedx/cdxgen or set PATH variable
|
|
# INFO [2025-07-28 20:17:35,654] Generating Software Bill-of-Materials for container image shiftleft/scan-slim. This might take a few mins ...
|
|
# WARNING [2025-07-28 20:17:35,654] Unable to locate cdxgen command.
|
|
makeWrapperArgs = [
|
|
"--prefix PATH : ${
|
|
lib.makeBinPath [
|
|
cdxgen
|
|
]
|
|
}"
|
|
];
|
|
|
|
passthru.tests = { inherit (nixosTests) dep-scan; };
|
|
|
|
meta = {
|
|
description = "Security and risk audit tool based on known vulnerabilities, advisories, and license limitations for project dependencies";
|
|
homepage = "https://github.com/owasp-dep-scan/dep-scan";
|
|
changelog = "https://github.com/owasp-dep-scan/dep-scan/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
teams = [ lib.teams.ngi ];
|
|
mainProgram = "dep-scan";
|
|
};
|
|
}
|