Skip to content

Commit 3d3db64

Browse files
committed
python310Packages.foolscap: 21.7.0 -> 23.3.0
1 parent 0397322 commit 3d3db64

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

pkgs/development/python-modules/foolscap/default.nix

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,45 @@
11
{ lib
22
, buildPythonPackage
33
, fetchPypi
4-
, fetchpatch
54
, mock
65
, pyopenssl
76
, pytestCheckHook
7+
, pythonOlder
88
, service-identity
9+
, six
910
, twisted
11+
, txi2p-tahoe
12+
, txtorcon
1013
}:
1114

1215
buildPythonPackage rec {
1316
pname = "foolscap";
14-
version = "21.7.0";
17+
version = "23.3.0";
18+
19+
disabled = pythonOlder "3.7";
20+
21+
format = "setuptools";
1522

1623
src = fetchPypi {
1724
inherit pname version;
18-
sha256 = "sha256-6dGFU4YNk1joXXZi2c2L84JtUbTs1ICgXfv0/EU2P4Q=";
25+
hash = "sha256-Vu7oXC1brsgBwr2q59TAgx8j1AFRbi5mjRNIWZTbkUU=";
1926
};
2027

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-
2928
propagatedBuildInputs = [
30-
mock
29+
six
3130
twisted
3231
pyopenssl
33-
service-identity
34-
];
32+
] ++ twisted.optional-dependencies.tls;
33+
34+
passthru.optional-dependencies = {
35+
i2p = [ txi2p-tahoe ];
36+
tor = [ txtorcon ];
37+
};
3538

3639
nativeCheckInputs = [
40+
mock
3741
pytestCheckHook
38-
];
39-
40-
disabledTestPaths = [
41-
# Not all dependencies are present
42-
"src/foolscap/test/test_connection.py"
43-
];
42+
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
4443

4544
pythonImportsCheck = [ "foolscap" ];
4645

0 commit comments

Comments
 (0)