pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / vu / vunnel / package.nix
blobfff20fecc568f4a212b87ee4824c96d93cd0893d
2   lib,
3   fetchFromGitHub,
4   git,
5   python3,
6 }:
8 python3.pkgs.buildPythonApplication rec {
9   pname = "vunnel";
10   version = "0.28.0";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "anchore";
15     repo = "vunnel";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-KemiM+dCLSU3a6IIbI9VKtaIeY4SVcHsuE9QwZtzNxU=";
18   };
20   pythonRelaxDeps = [
21     "defusedxml"
22     "ijson"
23     "importlib-metadata"
24     "sqlalchemy"
25     "websockets"
26     "xsdata"
27   ];
29   build-system = with python3.pkgs; [
30     poetry-core
31     poetry-dynamic-versioning
32   ];
34   dependencies = with python3.pkgs; [
35     click
36     colorlog
37     cvss
38     defusedxml
39     ijson
40     importlib-metadata
41     iso8601
42     lxml
43     mashumaro
44     mergedeep
45     orjson
46     pytest-snapshot
47     python-dateutil
48     pyyaml
49     requests
50     sqlalchemy
51     xsdata
52     xxhash
53     zstandard
54   ];
56   nativeCheckInputs =
57     [ git ]
58     ++ (with python3.pkgs; [
59       jsonschema
60       pytest-mock
61       pytest-unordered
62       pytestCheckHook
63     ]);
65   pythonImportsCheck = [ "vunnel" ];
67   disabledTests = [
68     # Compare output
69     "test_status"
70     # TypeError
71     "test_parser"
72   ];
74   meta = with lib; {
75     description = "Tool for collecting vulnerability data from various sources";
76     homepage = "https://github.com/anchore/vunnel";
77     changelog = "https://github.com/anchore/vunnel/releases/tag/v${version}";
78     license = licenses.asl20;
79     maintainers = with maintainers; [ fab ];
80     mainProgram = "vunnel";
81   };