nixpkgs/pkgs/by-name/sk/skjold/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.4 KiB
Nix
Raw Normal View History

2024-05-22 12:06:37 +00:00
{
lib,
fetchFromGitHub,
python3,
2022-01-25 14:55:42 +00:00
}:
python3.pkgs.buildPythonApplication rec {
2022-01-25 14:55:42 +00:00
pname = "skjold";
version = "0.6.2";
pyproject = true;
2022-01-25 14:55:42 +00:00
src = fetchFromGitHub {
owner = "twu";
repo = "skjold";
rev = "refs/tags/v${version}";
hash = "sha256-/ltaRs2WZXbrG3cVez+QIwupJrsV550TjOALbHX9Z0I=";
2022-01-25 14:55:42 +00:00
};
2024-05-22 12:06:37 +00:00
pythonRelaxDeps = [ "packaging" ];
2024-05-22 12:06:37 +00:00
build-system = with python3.pkgs; [ poetry-core ];
2022-01-25 14:55:42 +00:00
dependencies = with python3.pkgs; [
2022-01-25 14:55:42 +00:00
click
packaging
pyyaml
toml
];
nativeCheckInputs = with python3.pkgs; [
2022-01-25 14:55:42 +00:00
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"
];
2024-05-22 12:06:37 +00:00
pythonImportsCheck = [ "skjold" ];
2022-01-25 14:55:42 +00:00
meta = with lib; {
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 = licenses.mit;
2022-01-25 14:55:42 +00:00
maintainers = with maintainers; [ fab ];
};
}