1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 appthreat-vulnerability-db,
7 custom-json-diff,
8 cvss,
9 rich,
10 toml,
11 writableTmpDirAsHomeHook,
12 pytestCheckHook,
13 pytest-cov-stub,
14}:
15
16buildPythonPackage rec {
17 pname = "ds-analysis-lib";
18 version = "6.0.0b3";
19 pyproject = true;
20
21 # pypi because library is embedded into another project's repo
22 src = fetchPypi {
23 inherit version;
24 pname = "ds_analysis_lib";
25 hash = "sha256-XZZzAxQJk65Xoq6z2OadlHUN0REYTjKmSvwz17tvVqc=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 appthreat-vulnerability-db
32 custom-json-diff
33 cvss
34 rich
35 toml
36 ];
37
38 pythonImportsCheck = [ "analysis_lib" ];
39
40 # relies on data files that pypi doesn't include
41 disabledTestPaths = [
42 "tests/test_analysis.py"
43 "tests/test_csaf.py"
44 ];
45
46 nativeCheckInputs = [
47 writableTmpDirAsHomeHook
48 pytestCheckHook
49 pytest-cov-stub
50 ];
51
52 meta = {
53 description = "Analysis library for owasp depscan";
54 homepage = "https://pypi.org/project/ds-analysis-lib/";
55 maintainers = with lib.maintainers; [ ethancedwards8 ];
56 teams = [ lib.teams.ngi ];
57 license = with lib.licenses; [ mit ];
58 };
59}