mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
pyopencl: enable package build for macOS
This commit is contained in:
parent
26325e1340
commit
03aa75f46d
2 changed files with 10 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, Mako
|
, Mako
|
||||||
|
@ -12,14 +13,18 @@
|
||||||
, opencl-headers
|
, opencl-headers
|
||||||
, ocl-icd
|
, ocl-icd
|
||||||
, pybind11
|
, pybind11
|
||||||
|
, mesa_drivers
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
let
|
||||||
|
os-specific-buildInputs =
|
||||||
|
if stdenv.isDarwin then [ mesa_drivers.dev ] else [ ocl-icd ];
|
||||||
|
in buildPythonPackage rec {
|
||||||
pname = "pyopencl";
|
pname = "pyopencl";
|
||||||
version = "2021.1.4";
|
version = "2021.1.4";
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
buildInputs = [ opencl-headers ocl-icd pybind11 ];
|
buildInputs = [ opencl-headers pybind11 ] ++ os-specific-buildInputs;
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy cffi pytools decorator appdirs six Mako ];
|
propagatedBuildInputs = [ numpy cffi pytools decorator appdirs six Mako ];
|
||||||
|
|
||||||
|
|
|
@ -5866,7 +5866,9 @@ in {
|
||||||
|
|
||||||
phonemizer = callPackage ../development/python-modules/phonemizer { };
|
phonemizer = callPackage ../development/python-modules/phonemizer { };
|
||||||
|
|
||||||
pyopencl = callPackage ../development/python-modules/pyopencl { };
|
pyopencl = callPackage ../development/python-modules/pyopencl {
|
||||||
|
mesa_drivers = pkgs.mesa.drivers;
|
||||||
|
};
|
||||||
|
|
||||||
pyopengl = callPackage ../development/python-modules/pyopengl { };
|
pyopengl = callPackage ../development/python-modules/pyopengl { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue