mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 12:04:40 +00:00
Merge pull request #49351 from prusnak/add_python_pyro4
python.pkgs.Pyro4: new package (at version 4.74)
This commit is contained in:
commit
292e47acb9
@ -1,22 +0,0 @@
|
||||
{ stdenv, fetchurl, buildPythonPackage, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Pyro";
|
||||
version = "3.16";
|
||||
name = pname + "-" + version;
|
||||
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/P/Pyro/${name}.tar.gz";
|
||||
sha256 = "1bed508453ef7a7556b51424a58101af2349b662baab7e7331c5cb85dbe7e578";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Distributed object middleware for Python (IPC/RPC)";
|
||||
homepage = https://pythonhosted.org/Pyro/;
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ bjornfor ];
|
||||
};
|
||||
}
|
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 ];
|
||||
};
|
||||
}
|
@ -4682,7 +4682,11 @@ in {
|
||||
|
||||
PyStemmer = callPackage ../development/python-modules/pystemmer {};
|
||||
|
||||
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