mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
pythonPackages.foolscap: refactor move to python-modules
This commit is contained in:
parent
918af2267e
commit
991adf820b
40
pkgs/development/python-modules/foolscap/default.nix
Normal file
40
pkgs/development/python-modules/foolscap/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
|
@ -2301,41 +2301,7 @@ in {
|
|||
|
||||
fonttools = callPackage ../development/python-modules/fonttools { };
|
||||
|
||||
foolscap = buildPythonPackage (rec {
|
||||
name = "foolscap-${version}";
|
||||
version = "0.12.6";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/f/foolscap/${name}.tar.gz";
|
||||
sha256 = "1bpmqq6485mmr5jza9q2c55l9m1bfsvsbd9drsip7p5qcsi22jrz";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [ 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 = {
|
||||
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;
|
||||
|
||||
maintainers = [ ];
|
||||
};
|
||||
});
|
||||
foolscap = callPackage ../development/python-modules/foolscap { };
|
||||
|
||||
forbiddenfruit = buildPythonPackage rec {
|
||||
version = "0.1.0";
|
||||
|
|
Loading…
Reference in a new issue