1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{
lib,
buildPythonPackage,
fetchFromGitLab,
setuptools,
setuptools-scm,
requests,
ndjson,
flask,
importlib-metadata,
swh-core,
swh-model,
swh-auth,
swh-web-client,
beautifulsoup4,
pytestCheckHook,
pytest-flask,
pytest-mock,
types-beautifulsoup4,
types-pyyaml,
types-requests,
}:
buildPythonPackage rec {
pname = "swh-scanner";
version = "0.8.3";
pyproject = true;
src = fetchFromGitLab {
domain = "gitlab.softwareheritage.org";
group = "swh";
owner = "devel";
repo = "swh-scanner";
tag = "v${version}";
hash = "sha256-baUUuYFapBD7iuDaDP8CSR9f4glVZcS5qBpZddVf7z8=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
requests
ndjson
flask
importlib-metadata
swh-core
swh-model
swh-auth
swh-web-client
];
pythonImportsCheck = [ "swh.scanner" ];
nativeCheckInputs = [
beautifulsoup4
pytestCheckHook
pytest-flask
pytest-mock
swh-core
swh-model
types-beautifulsoup4
types-pyyaml
types-requests
];
disabledTestPaths = [
# pytestRemoveBytecodePhase fails with: "error (ignored): error: opening directory "/tmp/nix-build-python3.12-swh-scanner-0.8.3.drv-5/build/pytest-of-nixbld/pytest-0/test_randomdir_policy_info_cal0/big-directory/dir/dir/dir/ ......"
"swh/scanner/tests/test_policy.py"
# TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr'
"swh/scanner/tests/test_cli.py"
];
meta = {
changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-scanner/-/tags/${src.tag}";
description = "Source code scanner to analyze code bases and compare them with source code artifacts archived by Software Heritage";
homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-scanner";
license = lib.licenses.gpl3Only;
maintainers = [ ];
};
}
|