Commit 97b7712f authored by Robert Schütz's avatar Robert Schütz
Browse files

python311Packages.pyopencl: fix build

parent 317484b1
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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