2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
lib,
|
|
|
|
mock,
|
|
|
|
pyopenssl,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
six,
|
|
|
|
twisted,
|
|
|
|
txi2p-tahoe,
|
|
|
|
txtorcon,
|
|
|
|
versioneer,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "foolscap";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "24.9.0";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
versioneer
|
|
|
|
];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-vWsAdUDbWQuG3e0oAtLq8rA4Ys2wg38fD/h+E1ViQQg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Remove vendorized versioneer.py
|
|
|
|
rm versioneer.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
dependencies = [
|
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;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|