1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
{
buildPythonPackage,
fetchPypi,
lib,
mock,
pyopenssl,
pytestCheckHook,
pythonOlder,
setuptools,
six,
twisted,
txi2p-tahoe,
txtorcon,
versioneer,
}:
buildPythonPackage rec {
pname = "foolscap";
version = "23.3.0";
pyproject = true;
build-system = [
setuptools
versioneer
];
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Vu7oXC1brsgBwr2q59TAgx8j1AFRbi5mjRNIWZTbkUU=";
};
postPatch = ''
# Remove vendorized versioneer.py
rm versioneer.py
'';
dependencies = [
six
twisted
pyopenssl
] ++ twisted.optional-dependencies.tls;
passthru.optional-dependencies = {
i2p = [ txi2p-tahoe ];
tor = [ txtorcon ];
};
nativeCheckInputs = [
mock
pytestCheckHook
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ "foolscap" ];
meta = with lib; {
description = "RPC protocol for Python that follows the distributed object-capability model";
longDescription = ''
"Foolscap" is the name for the next-generation RPC protocol, intended to
replace Perspective Broker (part of Twisted). Foolscap is a protocol to
implement a distributed object-capabilities model in Python.
'';
homepage = "https://github.com/warner/foolscap";
license = licenses.mit;
maintainers = [ ];
};
}
|