mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, mock
|
|
, twisted
|
|
, pyopenssl
|
|
, service-identity
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "foolscap";
|
|
version = "20.4.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0rbw9makjmawkcxnkkngybj3n14s0dnzn9gkqqq2krcm514kmlb9";
|
|
};
|
|
|
|
propagatedBuildInputs = [ mock twisted pyopenssl service-identity ];
|
|
|
|
checkPhase = ''
|
|
# Either uncomment this, or remove this custom check phase entirely, if
|
|
# you wish to do battle with the foolscap tests. ~ C.
|
|
# trial foolscap
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://foolscap.lothar.com/";
|
|
description = "Foolscap, an 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.
|
|
'';
|
|
# See http://foolscap.lothar.com/trac/browser/LICENSE.
|
|
license = licenses.mit;
|
|
};
|
|
|
|
}
|