2018-10-28 18:03:57 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, python
|
|
|
|
, serpent
|
|
|
|
, dill
|
|
|
|
, cloudpickle
|
|
|
|
, msgpack
|
|
|
|
, isPy27
|
|
|
|
, isPy33
|
|
|
|
, selectors34
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "Pyro4";
|
2019-02-25 16:58:43 +01:00
|
|
|
version = "4.75";
|
2018-10-28 18:03:57 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-25 16:58:43 +01:00
|
|
|
sha256 = "1dfpp36imddx19yv0kd28gk1l71ckhpqy6jd590wpm2680jw15rq";
|
2018-10-28 18:03:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|