depot/third_party/nixpkgs/pkgs/development/python-modules/pyro5/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

53 lines
1,023 B
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, serpent
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyro5";
version = "5.14";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "Pyro5";
inherit version;
hash = "sha256-ZP3OE3sP5TLohhTSRrfJi74KT0JnhsUkU5rNxeaUCGo=";
};
propagatedBuildInputs = [
serpent
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# Ignore network related tests, which fail in sandbox
"StartNSfunc"
"Broadcast"
"GetIP"
"TestNameServer"
"TestBCSetup"
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
"Socket"
];
pythonImportsCheck = [
"Pyro5"
];
meta = with lib; {
description = "Distributed object middleware for Python (RPC)";
homepage = "https://github.com/irmen/Pyro5";
changelog = "https://github.com/irmen/Pyro5/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}