tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.foolscap: 21.7.0 -> 23.3.0
Robert Schütz
2 years ago
3d3db646
0397322d
+19
-20
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
foolscap
default.nix
+19
-20
pkgs/development/python-modules/foolscap/default.nix
···
1
{ lib
2
, buildPythonPackage
3
, fetchPypi
4
-
, fetchpatch
5
, mock
6
, pyopenssl
7
, pytestCheckHook
0
8
, service-identity
0
9
, twisted
0
0
10
}:
11
12
buildPythonPackage rec {
13
pname = "foolscap";
14
-
version = "21.7.0";
0
0
0
0
15
16
src = fetchPypi {
17
inherit pname version;
18
-
sha256 = "sha256-6dGFU4YNk1joXXZi2c2L84JtUbTs1ICgXfv0/EU2P4Q=";
19
};
20
21
-
patches = [
22
-
(fetchpatch {
23
-
name = "fix-tests-with-twisted-22.10.0.patch";
24
-
url = "https://github.com/warner/foolscap/commit/c04202eb5d4cf052e650ec2985ea6037605fd79e.patch";
25
-
hash = "sha256-RldDc18n3WYHdYg0ZmM8PBffIuiGa1NIfdoHs3mEEfc=";
26
-
})
27
-
];
28
-
29
propagatedBuildInputs = [
30
-
mock
31
twisted
32
pyopenssl
33
-
service-identity
34
-
];
0
0
0
0
35
36
nativeCheckInputs = [
0
37
pytestCheckHook
38
-
];
39
-
40
-
disabledTestPaths = [
41
-
# Not all dependencies are present
42
-
"src/foolscap/test/test_connection.py"
43
-
];
44
45
pythonImportsCheck = [ "foolscap" ];
46
···
1
{ lib
2
, buildPythonPackage
3
, fetchPypi
0
4
, mock
5
, pyopenssl
6
, pytestCheckHook
7
+
, pythonOlder
8
, service-identity
9
+
, six
10
, twisted
11
+
, txi2p-tahoe
12
+
, txtorcon
13
}:
14
15
buildPythonPackage rec {
16
pname = "foolscap";
17
+
version = "23.3.0";
18
+
19
+
disabled = pythonOlder "3.7";
20
+
21
+
format = "setuptools";
22
23
src = fetchPypi {
24
inherit pname version;
25
+
hash = "sha256-Vu7oXC1brsgBwr2q59TAgx8j1AFRbi5mjRNIWZTbkUU=";
26
};
27
0
0
0
0
0
0
0
0
28
propagatedBuildInputs = [
29
+
six
30
twisted
31
pyopenssl
32
+
] ++ twisted.optional-dependencies.tls;
33
+
34
+
passthru.optional-dependencies = {
35
+
i2p = [ txi2p-tahoe ];
36
+
tor = [ txtorcon ];
37
+
};
38
39
nativeCheckInputs = [
40
+
mock
41
pytestCheckHook
42
+
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
0
0
0
0
0
43
44
pythonImportsCheck = [ "foolscap" ];
45