bandwhich: 0.23.0 -> 0.23.1; move to by-name; nixfmt; useFetchCargoVendor (#356934)
[NixPkgs.git] / pkgs / by-name / sk / skjold / package.nix
blob694052b7dcbb92311c79c68cc048c97e04346c58
2   lib,
3   fetchFromGitHub,
4   python3,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "skjold";
9   version = "0.6.2";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "twu";
14     repo = "skjold";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-/ltaRs2WZXbrG3cVez+QIwupJrsV550TjOALbHX9Z0I=";
17   };
19   pythonRelaxDeps = [ "packaging" ];
21   build-system = with python3.pkgs; [ poetry-core ];
23   dependencies = with python3.pkgs; [
24     click
25     packaging
26     pyyaml
27     toml
28   ];
30   nativeCheckInputs = with python3.pkgs; [
31     pytest-mock
32     pytest-watch
33     pytestCheckHook
34   ];
36   disabledTestPaths = [
37     # Too sensitive to pass
38     "tests/test_cli.py"
39   ];
41   disabledTests = [
42     # Requires network access
43     "pyup-werkzeug"
44     "test_ensure_accessing_advisories_triggers_update"
45     "test_ensure_accessing_advisories_triggers_update"
46     "test_ensure_gemnasium_update"
47     "test_ensure_missing_github_token_raises_usage_error"
48     "test_ensure_pypi_advisory_db_update"
49     "test_ensure_source_is_affected_single"
50     "test_osv_advisory_with_vulnerable_package_via_osv_api"
51     "urllib3"
52   ];
54   pythonImportsCheck = [ "skjold" ];
56   meta = with lib; {
57     description = "Tool to Python dependencies against security advisory databases";
58     homepage = "https://github.com/twu/skjold";
59     changelog = "https://github.com/twu/skjold/releases/tag/v${version}";
60     license = licenses.mit;
61     maintainers = with maintainers; [ fab ];
62   };