2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
2021-12-26 17:43:05 +00:00
|
|
|
, stdenv
|
2023-02-02 18:25:31 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, serpent
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-02-02 18:25:31 +00:00
|
|
|
pname = "pyro5";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "5.14";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-02-02 18:25:31 +00:00
|
|
|
pname = "Pyro5";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-ZP3OE3sP5TLohhTSRrfJi74KT0JnhsUkU5rNxeaUCGo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
serpent
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Ignore network related tests, which fail in sandbox
|
|
|
|
"StartNSfunc"
|
|
|
|
"Broadcast"
|
|
|
|
"GetIP"
|
|
|
|
"TestNameServer"
|
|
|
|
"TestBCSetup"
|
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2021-12-26 17:43:05 +00:00
|
|
|
"Socket"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"Pyro5"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Distributed object middleware for Python (RPC)";
|
|
|
|
homepage = "https://github.com/irmen/Pyro5";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/irmen/Pyro5/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|