Merge pull request #212433 from fabaff/pypro4-fix

python310Packages.Pyro4: disable on Python >= 3.11

authored by Pavol Rusnak and committed by GitHub eb95aa03 3d309cd8

+40 -20
+13 -9
pkgs/development/python-modules/pyro4/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , fetchPypi 4 - , serpent 5 - , dill 6 , cloudpickle 7 , msgpack 8 - , isPy27 9 , pytestCheckHook 10 }: 11 12 buildPythonPackage rec { ··· 14 version = "4.82"; 15 format = "setuptools"; 16 17 - disabled = isPy27; 18 19 src = fetchPypi { 20 pname = "Pyro4"; ··· 37 ]; 38 39 # add testsupport.py to PATH 40 - preCheck = "PYTHONPATH=tests/PyroTests:$PYTHONPATH"; 41 42 - 43 - pytestFlagsArray = [ 44 # ignore network related tests, which fail in sandbox 45 - "--ignore=tests/PyroTests/test_naming.py" 46 ]; 47 48 disabledTests = [ ··· 61 meta = with lib; { 62 description = "Distributed object middleware for Python (RPC)"; 63 homepage = "https://github.com/irmen/Pyro4"; 64 license = licenses.mit; 65 maintainers = with maintainers; [ prusnak ]; 66 };
··· 1 { lib 2 , buildPythonPackage 3 , cloudpickle 4 + , dill 5 + , fetchPypi 6 , msgpack 7 , pytestCheckHook 8 + , pythonAtLeast 9 + , serpent 10 }: 11 12 buildPythonPackage rec { ··· 14 version = "4.82"; 15 format = "setuptools"; 16 17 + # No support Python >= 3.11 18 + # https://github.com/irmen/Pyro4/issues/246 19 + disabled = pythonAtLeast "3.11"; 20 21 src = fetchPypi { 22 pname = "Pyro4"; ··· 39 ]; 40 41 # add testsupport.py to PATH 42 + preCheck = '' 43 + PYTHONPATH=tests/PyroTests:$PYTHONPATH 44 + ''; 45 46 + disabledTestPaths = [ 47 # ignore network related tests, which fail in sandbox 48 + "tests/PyroTests/test_naming.py" 49 ]; 50 51 disabledTests = [ ··· 64 meta = with lib; { 65 description = "Distributed object middleware for Python (RPC)"; 66 homepage = "https://github.com/irmen/Pyro4"; 67 + changelog = "https://github.com/irmen/Pyro4/releases/tag/${version}"; 68 license = licenses.mit; 69 maintainers = with maintainers; [ prusnak ]; 70 };
+27 -11
pkgs/development/python-modules/pyro5/default.nix
··· 1 - { buildPythonPackage 2 - , fetchPypi 3 - , lib 4 , stdenv 5 , serpent 6 , pythonOlder 7 , pytestCheckHook 8 }: 9 10 buildPythonPackage rec { 11 - pname = "Pyro5"; 12 version = "5.14"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchPypi { 17 - inherit pname version; 18 - sha256 = "sha256-ZP3OE3sP5TLohhTSRrfJi74KT0JnhsUkU5rNxeaUCGo="; 19 }; 20 21 - propagatedBuildInputs = [ serpent ]; 22 23 - nativeCheckInputs = [ pytestCheckHook ]; 24 25 - # ignore network related tests, which fail in sandbox 26 - disabledTests = [ "StartNSfunc" "Broadcast" "GetIP" "TestNameServer" "TestBCSetup" ] 27 - ++ lib.optionals stdenv.hostPlatform.isDarwin [ 28 "Socket" 29 ]; 30 31 meta = with lib; { 32 description = "Distributed object middleware for Python (RPC)"; 33 homepage = "https://github.com/irmen/Pyro5"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ peterhoeg ]; 36 };
··· 1 + { lib 2 , stdenv 3 + , buildPythonPackage 4 + , fetchPypi 5 , serpent 6 , pythonOlder 7 , pytestCheckHook 8 }: 9 10 buildPythonPackage rec { 11 + pname = "pyro5"; 12 version = "5.14"; 13 + format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 + pname = "Pyro5"; 19 + inherit version; 20 + hash = "sha256-ZP3OE3sP5TLohhTSRrfJi74KT0JnhsUkU5rNxeaUCGo="; 21 }; 22 23 + propagatedBuildInputs = [ 24 + serpent 25 + ]; 26 27 + nativeCheckInputs = [ 28 + pytestCheckHook 29 + ]; 30 31 + disabledTests = [ 32 + # Ignore network related tests, which fail in sandbox 33 + "StartNSfunc" 34 + "Broadcast" 35 + "GetIP" 36 + "TestNameServer" 37 + "TestBCSetup" 38 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ 39 "Socket" 40 ]; 41 42 + pythonImportsCheck = [ 43 + "Pyro5" 44 + ]; 45 + 46 meta = with lib; { 47 description = "Distributed object middleware for Python (RPC)"; 48 homepage = "https://github.com/irmen/Pyro5"; 49 + changelog = "https://github.com/irmen/Pyro5/releases/tag/v${version}"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ peterhoeg ]; 52 };