2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, pyopenssl
|
2021-07-14 22:03:04 +00:00
|
|
|
, pytestCheckHook
|
2023-03-15 16:39:30 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, service-identity
|
2023-03-15 16:39:30 +00:00
|
|
|
, six
|
2021-07-14 22:03:04 +00:00
|
|
|
, twisted
|
2023-03-15 16:39:30 +00:00
|
|
|
, txi2p-tahoe
|
|
|
|
, txtorcon
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "foolscap";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "23.3.0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-Vu7oXC1brsgBwr2q59TAgx8j1AFRbi5mjRNIWZTbkUU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-03-15 16:39:30 +00:00
|
|
|
six
|
2021-07-14 22:03:04 +00:00
|
|
|
twisted
|
|
|
|
pyopenssl
|
2023-03-15 16:39:30 +00:00
|
|
|
] ++ twisted.optional-dependencies.tls;
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
i2p = [ txi2p-tahoe ];
|
|
|
|
tor = [ txtorcon ];
|
|
|
|
};
|
2021-07-14 22:03:04 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-03-15 16:39:30 +00:00
|
|
|
mock
|
2021-07-14 22:03:04 +00:00
|
|
|
pytestCheckHook
|
2023-03-15 16:39:30 +00:00
|
|
|
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "foolscap" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-07-14 22:03:04 +00:00
|
|
|
description = "RPC protocol for Python that follows the distributed object-capability model";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
2021-07-14 22:03:04 +00:00
|
|
|
"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.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2021-07-14 22:03:04 +00:00
|
|
|
homepage = "https://github.com/warner/foolscap";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2021-07-14 22:03:04 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|