2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, cloudpickle
|
2023-02-02 18:25:31 +00:00
|
|
|
, dill
|
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, msgpack
|
2020-12-07 07:45:13 +00:00
|
|
|
, pytestCheckHook
|
2023-02-02 18:25:31 +00:00
|
|
|
, pythonAtLeast
|
|
|
|
, serpent
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "pyro4";
|
|
|
|
version = "4.82";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
# No support Python >= 3.11
|
|
|
|
# https://github.com/irmen/Pyro4/issues/246
|
|
|
|
disabled = pythonAtLeast "3.11";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "Pyro4";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-UR9bCATpLdd9wzrfnJR3h+P56cWpaxIWLwVXp8TOIfs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
serpent
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dill
|
|
|
|
cloudpickle
|
|
|
|
msgpack
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# add testsupport.py to PATH
|
2023-02-02 18:25:31 +00:00
|
|
|
preCheck = ''
|
|
|
|
PYTHONPATH=tests/PyroTests:$PYTHONPATH
|
|
|
|
'';
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
disabledTestPaths = [
|
2022-01-13 20:06:32 +00:00
|
|
|
# ignore network related tests, which fail in sandbox
|
2023-02-02 18:25:31 +00:00
|
|
|
"tests/PyroTests/test_naming.py"
|
2022-01-13 20:06:32 +00:00
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
disabledTests = [
|
|
|
|
"StartNSfunc"
|
|
|
|
"Broadcast"
|
|
|
|
"GetIP"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
# otherwise the tests hang the build
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"Pyro4"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Distributed object middleware for Python (RPC)";
|
|
|
|
homepage = "https://github.com/irmen/Pyro4";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/irmen/Pyro4/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|