2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-12-17 10:02:37 +00:00
|
|
|
, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
, mock
|
|
|
|
, pyopenssl
|
2021-07-14 22:03:04 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, service-identity
|
2021-07-14 22:03:04 +00:00
|
|
|
, twisted
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "foolscap";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "21.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-07-14 22:03:04 +00:00
|
|
|
sha256 = "sha256-6dGFU4YNk1joXXZi2c2L84JtUbTs1ICgXfv0/EU2P4Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-tests-with-twisted-22.10.0.patch";
|
|
|
|
url = "https://github.com/warner/foolscap/commit/c04202eb5d4cf052e650ec2985ea6037605fd79e.patch";
|
|
|
|
hash = "sha256-RldDc18n3WYHdYg0ZmM8PBffIuiGa1NIfdoHs3mEEfc=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mock
|
|
|
|
twisted
|
|
|
|
pyopenssl
|
|
|
|
service-identity
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Not all dependencies are present
|
|
|
|
"src/foolscap/test/test_connection.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|