tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.aiocoap: format with nixfmt
Fabian Affolter
2 years ago
2c4139d4
906e8df0
+43
-50
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
aiocoap
default.nix
+43
-50
pkgs/development/python-modules/aiocoap/default.nix
···
1
1
-
{ lib
2
2
-
, buildPythonPackage
3
3
-
, cbor-diag
4
4
-
, cbor2
5
5
-
, cryptography
6
6
-
, dtlssocket
7
7
-
, fetchFromGitHub
8
8
-
, filelock
9
9
-
, ge25519
10
10
-
, pygments
11
11
-
, pytestCheckHook
12
12
-
, pythonAtLeast
13
13
-
, pythonOlder
14
14
-
, setuptools
15
15
-
, termcolor
16
16
-
, websockets
1
1
+
{
2
2
+
lib,
3
3
+
buildPythonPackage,
4
4
+
cbor-diag,
5
5
+
cbor2,
6
6
+
cryptography,
7
7
+
dtlssocket,
8
8
+
fetchFromGitHub,
9
9
+
filelock,
10
10
+
ge25519,
11
11
+
pygments,
12
12
+
pytestCheckHook,
13
13
+
pythonAtLeast,
14
14
+
pythonOlder,
15
15
+
setuptools,
16
16
+
termcolor,
17
17
+
websockets,
17
18
}:
18
19
19
20
buildPythonPackage rec {
···
30
31
hash = "sha256-jBRxorHr5/CgAR6WVXBUycZpJ6n1DYVFQk6kqVv8D1Q=";
31
32
};
32
33
33
33
-
build-system = [
34
34
-
setuptools
35
35
-
];
34
34
+
build-system = [ setuptools ];
36
35
37
36
passthru.optional-dependencies = {
38
37
oscore = [
···
41
40
filelock
42
41
ge25519
43
42
];
44
44
-
tinydtls = [
45
45
-
dtlssocket
46
46
-
];
47
47
-
ws = [
48
48
-
websockets
49
49
-
];
43
43
+
tinydtls = [ dtlssocket ];
44
44
+
ws = [ websockets ];
50
45
prettyprint = [
51
46
termcolor
52
47
cbor2
···
55
50
];
56
51
};
57
52
58
58
-
nativeCheckInputs = [
59
59
-
pytestCheckHook
60
60
-
];
53
53
+
nativeCheckInputs = [ pytestCheckHook ];
61
54
62
55
disabledTestPaths = [
63
56
# Don't test the plugins
···
66
59
"tests/test_oscore_plugtest.py"
67
60
];
68
61
69
69
-
disabledTests = [
70
70
-
# Communication is not properly mocked
71
71
-
"test_uri_parser"
72
72
-
] ++ lib.optionals (pythonAtLeast "3.12") [
73
73
-
# https://github.com/chrysn/aiocoap/issues/339
74
74
-
"TestServerTCP::test_big_resource"
75
75
-
"TestServerTCP::test_empty_accept"
76
76
-
"TestServerTCP::test_error_resources"
77
77
-
"TestServerTCP::test_fast_resource"
78
78
-
"TestServerTCP::test_js_accept"
79
79
-
"TestServerTCP::test_manualbig_resource"
80
80
-
"TestServerTCP::test_nonexisting_resource"
81
81
-
"TestServerTCP::test_replacing_resource"
82
82
-
"TestServerTCP::test_root_resource"
83
83
-
"TestServerTCP::test_slow_resource"
84
84
-
"TestServerTCP::test_slowbig_resource"
85
85
-
"TestServerTCP::test_spurious_resource"
86
86
-
"TestServerTCP::test_unacceptable_accept"
87
87
-
];
62
62
+
disabledTests =
63
63
+
[
64
64
+
# Communication is not properly mocked
65
65
+
"test_uri_parser"
66
66
+
]
67
67
+
++ lib.optionals (pythonAtLeast "3.12") [
68
68
+
# https://github.com/chrysn/aiocoap/issues/339
69
69
+
"TestServerTCP::test_big_resource"
70
70
+
"TestServerTCP::test_empty_accept"
71
71
+
"TestServerTCP::test_error_resources"
72
72
+
"TestServerTCP::test_fast_resource"
73
73
+
"TestServerTCP::test_js_accept"
74
74
+
"TestServerTCP::test_manualbig_resource"
75
75
+
"TestServerTCP::test_nonexisting_resource"
76
76
+
"TestServerTCP::test_replacing_resource"
77
77
+
"TestServerTCP::test_root_resource"
78
78
+
"TestServerTCP::test_slow_resource"
79
79
+
"TestServerTCP::test_slowbig_resource"
80
80
+
"TestServerTCP::test_spurious_resource"
81
81
+
"TestServerTCP::test_unacceptable_accept"
82
82
+
];
88
83
89
89
-
pythonImportsCheck = [
90
90
-
"aiocoap"
91
91
-
];
84
84
+
pythonImportsCheck = [ "aiocoap" ];
92
85
93
86
meta = with lib; {
94
87
description = "Python CoAP library";