mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-01 08:25:55 +03:00
python.pkgs.Pyro4: new package (at version 4.74)
includes its dependency python.pkgs.serpent (at version 1.27)
This commit is contained in:
parent
3272b9a2e9
commit
e212399d44
46
pkgs/development/python-modules/pyro4/default.nix
Normal file
46
pkgs/development/python-modules/pyro4/default.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, lib
|
||||
, python
|
||||
, serpent
|
||||
, dill
|
||||
, cloudpickle
|
||||
, msgpack
|
||||
, isPy27
|
||||
, isPy33
|
||||
, selectors34
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
name = "${pname}-${version}";
|
||||
pname = "Pyro4";
|
||||
version = "4.74";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "89ed7b12c162e5124f322f992f9506c44f5e1a379926cf01ee73ef810d3bf75f";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
serpent
|
||||
] ++ lib.optionals (isPy27 || isPy33) [ selectors34 ];
|
||||
|
||||
buildInputs = [
|
||||
dill
|
||||
cloudpickle
|
||||
msgpack
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} setup.py test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Distributed object middleware for Python (RPC)";
|
||||
homepage = https://github.com/irmen/Pyro4;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ prusnak ];
|
||||
};
|
||||
}
|
32
pkgs/development/python-modules/selectors34/default.nix
Normal file
32
pkgs/development/python-modules/selectors34/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, lib
|
||||
, python
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
name = "${pname}-${version}";
|
||||
pname = "selectors34";
|
||||
version = "1.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "09f5066337f8a76fb5233f267873f89a27a17c10bf79575954894bb71686451c";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} setup.py test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A backport of the selectors module from Python 3.4";
|
||||
homepage = https://github.com/berkerpeksag/selectors34;
|
||||
license = licenses.psfl;
|
||||
maintainers = with maintainers; [ prusnak ];
|
||||
};
|
||||
}
|
34
pkgs/development/python-modules/serpent/default.nix
Normal file
34
pkgs/development/python-modules/serpent/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, lib
|
||||
, python
|
||||
, isPy27
|
||||
, isPy33
|
||||
, enum34
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
name = "${pname}-${version}";
|
||||
pname = "serpent";
|
||||
version = "1.27";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6f8dc4317fb5b5a9629b5e518846bc9fee374b8171533726dc68df52b36ee912";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = lib.optionals (isPy27 || isPy33) [ enum34 ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} setup.py test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A simple serialization library based on ast.literal_eval";
|
||||
homepage = https://github.com/irmen/Serpent;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ prusnak ];
|
||||
};
|
||||
}
|
@ -4684,6 +4684,12 @@ in {
|
||||
|
||||
Pyro = callPackage ../development/python-modules/pyro { };
|
||||
|
||||
serpent = callPackage ../development/python-modules/serpent { };
|
||||
|
||||
selectors34 = callPackage ../development/python-modules/selectors34 { };
|
||||
|
||||
Pyro4 = callPackage ../development/python-modules/pyro4 { };
|
||||
|
||||
pyrsistent = buildPythonPackage (rec {
|
||||
name = "pyrsistent-0.11.12";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user