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
83
84
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitLab,
setuptools,
setuptools-scm,
attrs,
attrs-strict,
dateutils,
deprecated,
hypothesis,
iso8601,
typing-extensions,
click,
dulwich,
aiohttp,
pytestCheckHook,
pytz,
types-click,
types-python-dateutil,
types-pytz,
types-deprecated,
}:
buildPythonPackage rec {
pname = "swh-model";
version = "8.4.1";
pyproject = true;
src = fetchFromGitLab {
domain = "gitlab.softwareheritage.org";
group = "swh";
owner = "devel";
repo = "swh-model";
tag = "v${version}";
hash = "sha256-v/vbY0mxvsbuLUAmDACW9brfVF5djMYyvv9Mf1VL6do=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
attrs
attrs-strict
click
dulwich
dateutils
deprecated
hypothesis
iso8601
typing-extensions
];
pythonImportsCheck = [ "swh.model" ];
nativeCheckInputs = [
aiohttp
click
pytestCheckHook
pytz
types-click
types-python-dateutil
types-pytz
types-deprecated
];
disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin) [
# OSError: [Errno 92] Illegal byte sequence
"swh/model/tests/test_cli.py::TestIdentify::test_exclude"
"swh/model/tests/test_from_disk.py::DirectoryToObjects::test_exclude"
"swh/model/tests/test_from_disk.py::DirectoryToObjects::test_exclude_trailing"
];
meta = {
description = "Implementation of the Data model of the Software Heritage project, used to archive source code artifacts";
homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-model";
license = lib.licenses.gpl3Only;
maintainers = [ ];
};
}
|