tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python313Packages.slixmpp: fix build and modernize
Martin Weinelt
9 months ago
c7115c1f
282668a6
+36
-10
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
slixmpp
default.nix
+36
-10
pkgs/development/python-modules/slixmpp/default.nix
···
3
3
buildPythonPackage,
4
4
aiodns,
5
5
aiohttp,
6
6
+
cryptography,
7
7
+
defusedxml,
8
8
+
emoji,
6
9
fetchPypi,
7
10
gnupg,
8
11
pyasn1,
9
12
pyasn1-modules,
10
13
pytestCheckHook,
11
14
replaceVars,
15
15
+
rustPlatform,
12
16
pythonOlder,
13
17
}:
14
18
15
19
buildPythonPackage rec {
16
20
pname = "slixmpp";
17
21
version = "1.10.0";
18
18
-
format = "setuptools";
22
22
+
pyproject = true;
19
23
20
24
disabled = pythonOlder "3.9";
21
25
···
24
28
hash = "sha256-RrxdAVB8tChcglXOXHF8C19o5U38HxcSiDmY1tciV4o=";
25
29
};
26
30
27
27
-
propagatedBuildInputs = [
31
31
+
patches = [
32
32
+
(replaceVars ./hardcode-gnupg-path.patch {
33
33
+
inherit gnupg;
34
34
+
})
35
35
+
];
36
36
+
37
37
+
build-system = with rustPlatform; [
38
38
+
cargoSetupHook
39
39
+
maturinBuildHook
40
40
+
];
41
41
+
42
42
+
cargoDeps = rustPlatform.fetchCargoVendor {
43
43
+
inherit pname src;
44
44
+
hash = "sha256-CeuClBYEG2YCm5lnxFs5RhjIgYEOe76rzHpauLZeQR0=";
45
45
+
};
46
46
+
47
47
+
dependencies = [
28
48
aiodns
29
29
-
aiohttp
30
49
pyasn1
31
50
pyasn1-modules
32
51
];
33
52
34
34
-
nativeCheckInputs = [ pytestCheckHook ];
53
53
+
optional-dependencies = {
54
54
+
xep-0363 = [ aiohttp ];
55
55
+
xep-0444-compliance = [ emoji ];
56
56
+
xep-0464 = [ cryptography ];
57
57
+
safer-xml-parserig = [ defusedxml ];
58
58
+
};
35
59
36
36
-
patches = [
37
37
-
(replaceVars ./hardcode-gnupg-path.patch {
38
38
-
inherit gnupg;
39
39
-
})
40
40
-
];
60
60
+
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
61
61
+
62
62
+
preCheck = ''
63
63
+
# don't test against pure python version in the source tree
64
64
+
rm -rf slixmpp
65
65
+
'';
41
66
42
67
disabledTestPaths = [
68
68
+
# Exclude integration tests
69
69
+
"itests/"
43
70
# Exclude live tests
44
71
"tests/live_test.py"
45
45
-
"tests/test_xep_0454.py"
46
72
];
47
73
48
74
pythonImportsCheck = [ "slixmpp" ];