1{ lib
2, buildPythonPackage
3, fetchPypi
4, mock
5, pyopenssl
6, pytestCheckHook
7, service-identity
8, twisted
9}:
10
11buildPythonPackage rec {
12 pname = "foolscap";
13 version = "21.7.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-6dGFU4YNk1joXXZi2c2L84JtUbTs1ICgXfv0/EU2P4Q=";
18 };
19
20 propagatedBuildInputs = [
21 mock
22 twisted
23 pyopenssl
24 service-identity
25 ];
26
27 checkInputs = [
28 pytestCheckHook
29 ];
30
31 disabledTestPaths = [
32 # Not all dependencies are present
33 "src/foolscap/test/test_connection.py"
34 ];
35
36 pythonImportsCheck = [ "foolscap" ];
37
38 meta = with lib; {
39 description = "RPC protocol for Python that follows the distributed object-capability model";
40 longDescription = ''
41 "Foolscap" is the name for the next-generation RPC protocol, intended to
42 replace Perspective Broker (part of Twisted). Foolscap is a protocol to
43 implement a distributed object-capabilities model in Python.
44 '';
45 homepage = "https://github.com/warner/foolscap";
46 license = licenses.mit;
47 maintainers = with maintainers; [ ];
48 };
49}