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
64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "skjold";
|
|
version = "0.6.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "twu";
|
|
repo = "skjold";
|
|
tag = "v${version}";
|
|
hash = "sha256-/ltaRs2WZXbrG3cVez+QIwupJrsV550TjOALbHX9Z0I=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "packaging" ];
|
|
|
|
build-system = with python3.pkgs; [ poetry-core ];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
click
|
|
packaging
|
|
pyyaml
|
|
toml
|
|
];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
pytest-mock
|
|
pytest-watch
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Too sensitive to pass
|
|
"tests/test_cli.py"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Requires network access
|
|
"pyup-werkzeug"
|
|
"test_ensure_accessing_advisories_triggers_update"
|
|
"test_ensure_accessing_advisories_triggers_update"
|
|
"test_ensure_gemnasium_update"
|
|
"test_ensure_missing_github_token_raises_usage_error"
|
|
"test_ensure_pypi_advisory_db_update"
|
|
"test_ensure_source_is_affected_single"
|
|
"test_osv_advisory_with_vulnerable_package_via_osv_api"
|
|
"urllib3"
|
|
];
|
|
|
|
pythonImportsCheck = [ "skjold" ];
|
|
|
|
meta = {
|
|
description = "Tool to Python dependencies against security advisory databases";
|
|
homepage = "https://github.com/twu/skjold";
|
|
changelog = "https://github.com/twu/skjold/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|