Merge pull request #280303 from dotlambda/pyopencl-fix

python311Packages.pyopencl: fix build
This commit is contained in:
Robert Schütz 2024-01-12 17:38:19 +01:00 committed by GitHub
commit 3664945209
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
, stdenv
, fetchPypi
, buildPythonPackage
, fetchpatch
, appdirs
, cffi
, decorator
@ -34,6 +35,14 @@ in buildPythonPackage rec {
hash = "sha256-IgF078qQDp1d5a7yqht3pvJVBQHekrA1qRATrq5NTF4=";
};
patches = [
(fetchpatch {
name = "fix-conditions-for-CL_UNORM_INT24-availability.patch";
url = "https://github.com/inducer/pyopencl/pull/706.patch";
hash = "sha256-31aiqYlhbEw3F2k/x3W2rbOX0A90cHwIlfXMivFucMA=";
})
];
nativeBuildInputs = [
oldest-supported-numpy
setuptools