tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.swh-model: init at 7.1.0
Pol Dellaiera
11 months ago
b7ec5ffe
75ffe9e0
+86
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
swh-model
default.nix
top-level
python-packages.nix
+84
pkgs/development/python-modules/swh-model/default.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
buildPythonPackage,
5
5
+
fetchFromGitLab,
6
6
+
setuptools,
7
7
+
setuptools-scm,
8
8
+
attrs,
9
9
+
attrs-strict,
10
10
+
dateutils,
11
11
+
deprecated,
12
12
+
hypothesis,
13
13
+
iso8601,
14
14
+
typing-extensions,
15
15
+
click,
16
16
+
dulwich,
17
17
+
aiohttp,
18
18
+
pytestCheckHook,
19
19
+
pytz,
20
20
+
types-click,
21
21
+
types-python-dateutil,
22
22
+
types-pytz,
23
23
+
types-deprecated,
24
24
+
25
25
+
}:
26
26
+
27
27
+
buildPythonPackage rec {
28
28
+
pname = "swh-model";
29
29
+
version = "7.1.0";
30
30
+
pyproject = true;
31
31
+
32
32
+
src = fetchFromGitLab {
33
33
+
domain = "gitlab.softwareheritage.org";
34
34
+
group = "swh";
35
35
+
owner = "devel";
36
36
+
repo = "swh-model";
37
37
+
tag = "v${version}";
38
38
+
hash = "sha256-I0DaSipE5TVFqAdGkNo4e66l1x4A26EYk0F4tKMy33k=";
39
39
+
};
40
40
+
41
41
+
build-system = [
42
42
+
setuptools
43
43
+
setuptools-scm
44
44
+
];
45
45
+
46
46
+
dependencies = [
47
47
+
attrs
48
48
+
attrs-strict
49
49
+
click
50
50
+
dulwich
51
51
+
dateutils
52
52
+
deprecated
53
53
+
hypothesis
54
54
+
iso8601
55
55
+
typing-extensions
56
56
+
];
57
57
+
58
58
+
pythonImportsCheck = [ "swh.model" ];
59
59
+
60
60
+
nativeCheckInputs = [
61
61
+
aiohttp
62
62
+
click
63
63
+
pytestCheckHook
64
64
+
pytz
65
65
+
types-click
66
66
+
types-python-dateutil
67
67
+
types-pytz
68
68
+
types-deprecated
69
69
+
];
70
70
+
71
71
+
pytestFlagsArray = lib.optionals (stdenv.hostPlatform.isDarwin) [
72
72
+
# OSError: [Errno 92] Illegal byte sequence
73
73
+
"--deselect swh/model/tests/test_cli.py::TestIdentify::test_exclude"
74
74
+
"--deselect swh/model/tests/test_from_disk.py::DirectoryToObjects::test_exclude"
75
75
+
"--deselect swh/model/tests/test_from_disk.py::DirectoryToObjects::test_exclude_trailing"
76
76
+
];
77
77
+
78
78
+
meta = {
79
79
+
description = "Implementation of the Data model of the Software Heritage project, used to archive source code artifacts";
80
80
+
homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-model";
81
81
+
license = lib.licenses.gpl3Only;
82
82
+
maintainers = with lib.maintainers; [ drupol ];
83
83
+
};
84
84
+
}
+2
pkgs/top-level/python-packages.nix
···
17349
17349
17350
17350
swagger-ui-bundle = callPackage ../development/python-modules/swagger-ui-bundle { };
17351
17351
17352
17352
+
swh-model = callPackage ../development/python-modules/swh-model { };
17353
17353
+
17352
17354
swift = callPackage ../development/python-modules/swift { };
17353
17355
17354
17356
swifter = callPackage ../development/python-modules/swifter { };