evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / sk / skjold / package.nix
blobbbd5f57a778d0828e17ec7aa9a5c5a3022c30934
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 ];
24   dependencies = with python3.pkgs; [
25     click
26     packaging
27     pyyaml
28     toml
29   ];
31   nativeCheckInputs = with python3.pkgs; [
32     pytest-mock
33     pytest-watch
34     pytestCheckHook
35   ];
37   disabledTestPaths = [
38     # Too sensitive to pass
39     "tests/test_cli.py"
40   ];
42   disabledTests = [
43     # Requires network access
44     "pyup-werkzeug"
45     "test_ensure_accessing_advisories_triggers_update"
46     "test_ensure_accessing_advisories_triggers_update"
47     "test_ensure_gemnasium_update"
48     "test_ensure_missing_github_token_raises_usage_error"
49     "test_ensure_pypi_advisory_db_update"
50     "test_ensure_source_is_affected_single"
51     "test_osv_advisory_with_vulnerable_package_via_osv_api"
52     "urllib3"
53   ];
55   pythonImportsCheck = [ "skjold" ];
57   meta = with lib; {
58     description = "Tool to Python dependencies against security advisory databases";
59     homepage = "https://github.com/twu/skjold";
60     changelog = "https://github.com/twu/skjold/releases/tag/v${version}";
61     license = licenses.mit;
62     maintainers = with maintainers; [ fab ];
63   };