Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.pyopencl: 2024.2.6 -> 2024.2.7 #337876

Merged
merged 7 commits into from
Aug 28, 2024
57 changes: 27 additions & 30 deletions pkgs/development/python-modules/pyopencl/default.nix
Original file line number Diff line number Diff line change
@@ -1,54 +1,52 @@
{
lib,
stdenv,
fetchFromGitHub,
darwin,
ocl-icd,
buildPythonPackage,
fetchFromGitHub,

# build-system
cmake,
scikit-build-core,
pathspec,
ninja,
nanobind,

# dependencies
appdirs,
cffi,
darwin,
decorator,
mako,
ninja,
numpy,
ocl-icd,
oldest-supported-numpy,
pathspec,
scikit-build-core,

# buildInputs
opencl-headers,
platformdirs,
pybind11,
pytestCheckHook,

# dependencies
platformdirs,
pytools,
six,

# checks
pytestCheckHook,
SuperSandro2000 marked this conversation as resolved.
Show resolved Hide resolved
}:

let
os-specific-buildInputs = if stdenv.isDarwin then [ darwin.apple_sdk.frameworks.OpenCL ] else [ ocl-icd ];
os-specific-buildInputs =
SuperSandro2000 marked this conversation as resolved.
Show resolved Hide resolved
if stdenv.isDarwin then [ darwin.apple_sdk.frameworks.OpenCL ] else [ ocl-icd ];
in
buildPythonPackage rec {
pname = "pyopencl";
version = "2024.2.6";
format = "pyproject";
version = "2024.2.7";
pyproject = true;

src = fetchFromGitHub {
owner = "inducer";
repo = "pyopencl";
rev = "refs/tags/v${version}";
hash = "sha256-nP7ZAGeRXrjqDRWlc2SDP1hk1fseGeu9Zx0lOp9Pchs=";
hash = "sha256-DfZCtTeN1a1KS2qUU6iztba4opAVC/RUCe/hnkqTbII=";
};

nativeBuildInputs = [
build-system = [
cmake
nanobind
ninja
numpy
oldest-supported-numpy
pathspec
scikit-build-core
];
Expand All @@ -60,15 +58,10 @@ buildPythonPackage rec {
pybind11
] ++ os-specific-buildInputs;

propagatedBuildInputs = [
appdirs
cffi
decorator
mako
dependencies = [
numpy
SuperSandro2000 marked this conversation as resolved.
Show resolved Hide resolved
platformdirs
pytools
six
];

nativeCheckInputs = [ pytestCheckHook ];
Expand All @@ -83,9 +76,13 @@ buildPythonPackage rec {

pythonImportsCheck = [ "pyopencl" ];

meta = with lib; {
SuperSandro2000 marked this conversation as resolved.
Show resolved Hide resolved
meta = {
description = "Python wrapper for OpenCL";
homepage = "https://github.com/pyopencl/pyopencl";
license = licenses.mit;
changelog = "https://github.com/inducer/pyopencl/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
# ld: symbol(s) not found for architecture arm64
broken = stdenv.isDarwin && stdenv.isAarch64;
};
}