mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
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.
This commit is contained in:
parent
874f8c3a81
commit
0c564ffe78
@ -2,13 +2,14 @@
|
||||
, buildPythonPackage
|
||||
, pythonAtLeast
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, libuv
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyuv";
|
||||
version = "1.4.0";
|
||||
disabled = pythonAtLeast "3.10"; # https://github.com/saghul/pyuv/issues/273
|
||||
disabled = pythonAtLeast "3.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "saghul";
|
||||
@ -17,6 +18,14 @@ buildPythonPackage rec {
|
||||
sha256 = "1wiwwdylz66lfsjh6p4iv7pfhzvnhwjk332625njizfhz3gq9fwr";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "fix-build-with-python3.10.patch";
|
||||
url = "https://github.com/saghul/pyuv/commit/8bddcc27052017b5b9cb89c24dbfdf06737b0dd3.patch";
|
||||
sha256 = "sha256-J/3ky64Ff+gYpN3ksFLNuZ5xgPbBkyOl4LTY6fiHAgk=";
|
||||
})
|
||||
];
|
||||
|
||||
setupPyBuildFlags = [ "--use-system-libuv" ];
|
||||
|
||||
buildInputs = [ libuv ];
|
||||
|
Loading…
Reference in New Issue
Block a user