biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / skjold / default.nix
blobe827e727a957014ae65606e5dbdc85b1112e1726
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 let
7   py = python3.override {
8     packageOverrides = self: super: {
9       packaging = super.packaging.overridePythonAttrs (oldAttrs: rec {
10         version = "21.3";
11         src = oldAttrs.src.override {
12           inherit version;
13           hash = "sha256-3UfEKSfYmrkR5gZRiQfMLTofOLvQJjhZcGQ/nFuOz+s=";
14         };
15         nativeBuildInputs = with python3.pkgs; [ setuptools ];
16         propagatedBuildInputs = with python3.pkgs; [ pyparsing six ];
17       });
18     };
19   };
21 with py.pkgs;
23 buildPythonApplication rec {
24   pname = "skjold";
25   version = "0.6.1";
26   format = "pyproject";
28   src = fetchFromGitHub {
29     owner = "twu";
30     repo = pname;
31     rev = "refs/tags/v${version}";
32     hash = "sha256-rsdstzNZvokYfTjEyPrWR+0SJpf9wL0HAesq8+A+tPY=";
33   };
35   nativeBuildInputs = with py.pkgs; [
36     poetry-core
37   ];
39   propagatedBuildInputs = with py.pkgs; [
40     click
41     packaging
42     pyyaml
43     toml
44   ];
46   nativeCheckInputs = with py.pkgs; [
47     pytest-mock
48     pytest-watch
49     pytestCheckHook
50   ];
52   disabledTestPaths = [
53     # Too sensitive to pass
54     "tests/test_cli.py"
55   ];
57   disabledTests = [
58     # Requires network access
59     "pyup-werkzeug"
60     "test_ensure_accessing_advisories_triggers_update"
61     "test_ensure_accessing_advisories_triggers_update"
62     "test_ensure_gemnasium_update"
63     "test_ensure_missing_github_token_raises_usage_error"
64     "test_ensure_pypi_advisory_db_update"
65     "test_ensure_source_is_affected_single"
66     "test_osv_advisory_with_vulnerable_package_via_osv_api"
67     "urllib3"
68   ];
70   pythonImportsCheck = [
71     "skjold"
72   ];
74   meta = with lib; {
75     description = "Tool to Python dependencies against security advisory databases";
76     homepage = "https://github.com/twu/skjold";
77     changelog = "https://github.com/twu/skjold/releases/tag/v${version}";
78     license = with licenses; [ mit ];
79     maintainers = with maintainers; [ fab ];
80   };