9 buildPythonPackage rec {
12 disabled = pythonAtLeast "3.12";
14 src = fetchFromGitHub {
17 rev = "pyuv-${version}";
18 sha256 = "1wiwwdylz66lfsjh6p4iv7pfhzvnhwjk332625njizfhz3gq9fwr";
23 name = "fix-build-with-python3.10.patch";
24 url = "https://github.com/saghul/pyuv/commit/8bddcc27052017b5b9cb89c24dbfdf06737b0dd3.patch";
25 hash = "sha256-J/3ky64Ff+gYpN3ksFLNuZ5xgPbBkyOl4LTY6fiHAgk=";
28 name = "fix-build-with-python3.11.patch";
29 url = "https://github.com/saghul/pyuv/commit/2a3d42d44c6315ebd73899a35118380d2d5979b5.patch";
30 hash = "sha256-CQZexd6EjadCB7KyxeZKM24zrD9rXuNv4oA+Tb2nsdw=";
34 setupPyBuildFlags = [ "--use-system-libuv" ];
36 buildInputs = [ libuv ];
38 doCheck = false; # doesn't work in sandbox
40 pythonImportsCheck = [ "pyuv" ];
43 description = "Python interface for libuv";
44 homepage = "https://github.com/saghul/pyuv";
45 license = licenses.mit;
46 maintainers = with maintainers; [ dotlambda ];