lol

python3Packages.pyuv: backport python3.10 build fix

(There's no upstream issue about it yet, but pyuv fails to build against
python3.11, so keep the "disabled" attribute for that.)

Fixes https://github.com/NixOS/nixpkgs/issues/179857.

+10 -1
+10 -1
pkgs/development/python-modules/pyuv/default.nix
··· 2 2 , buildPythonPackage 3 3 , pythonAtLeast 4 4 , fetchFromGitHub 5 + , fetchpatch 5 6 , libuv 6 7 }: 7 8 8 9 buildPythonPackage rec { 9 10 pname = "pyuv"; 10 11 version = "1.4.0"; 11 - disabled = pythonAtLeast "3.10"; # https://github.com/saghul/pyuv/issues/273 12 + disabled = pythonAtLeast "3.11"; 12 13 13 14 src = fetchFromGitHub { 14 15 owner = "saghul"; ··· 16 17 rev = "pyuv-${version}"; 17 18 sha256 = "1wiwwdylz66lfsjh6p4iv7pfhzvnhwjk332625njizfhz3gq9fwr"; 18 19 }; 20 + 21 + patches = [ 22 + (fetchpatch { 23 + name = "fix-build-with-python3.10.patch"; 24 + url = "https://github.com/saghul/pyuv/commit/8bddcc27052017b5b9cb89c24dbfdf06737b0dd3.patch"; 25 + sha256 = "sha256-J/3ky64Ff+gYpN3ksFLNuZ5xgPbBkyOl4LTY6fiHAgk="; 26 + }) 27 + ]; 19 28 20 29 setupPyBuildFlags = [ "--use-system-libuv" ]; 21 30