summary refs log tree commit diff
path: root/pkgs/development/python-modules/foolscap/default.nix
blob: ea0c17d5524a2d76af9f3a35b4984d32878468a2 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchPypi
, mock
, pyopenssl
, pytestCheckHook
, service-identity
, twisted
}:

buildPythonPackage rec {
  pname = "foolscap";
  version = "21.7.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-6dGFU4YNk1joXXZi2c2L84JtUbTs1ICgXfv0/EU2P4Q=";
  };

  propagatedBuildInputs = [
    mock
    twisted
    pyopenssl
    service-identity
  ];

  checkInputs = [
    pytestCheckHook
  ];

  disabledTestPaths = [
    # Not all dependencies are present
    "src/foolscap/test/test_connection.py"
  ];

  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 = with maintainers; [ ];
  };
}