nixpkgs/pkgs/development/python-modules/pyro5/default.nix
2022-10-13 19:37:55 -07:00

38 lines
827 B
Nix

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