From 991adf820bb6d3f4512384ac2ae787b91834d4ba Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 16:04:58 -0400 Subject: pythonPackages.foolscap: refactor move to python-modules --- .../python-modules/foolscap/default.nix | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/foolscap/default.nix (limited to 'pkgs/development/python-modules/foolscap') diff --git a/pkgs/development/python-modules/foolscap/default.nix b/pkgs/development/python-modules/foolscap/default.nix new file mode 100644 index 000000000000..94b90a25d137 --- /dev/null +++ b/pkgs/development/python-modules/foolscap/default.nix @@ -0,0 +1,40 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, mock +, twisted +, pyopenssl +, service-identity +}: + +buildPythonPackage rec { + pname = "foolscap"; + version = "0.12.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "1bpmqq6485mmr5jza9q2c55l9m1bfsvsbd9drsip7p5qcsi22jrz"; + }; + + 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 stdenv.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; + }; + +} -- cgit 1.4.1