1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pyopencl/default.nix
2019-01-18 09:37:09 +01:00

45 lines
951 B
Nix

{ stdenv
, fetchPypi
, buildPythonPackage
, Mako
, pytest
, numpy
, cffi
, pytools
, decorator
, appdirs
, six
, opencl-headers
, ocl-icd
}:
buildPythonPackage rec {
pname = "pyopencl";
version = "2018.2.2";
checkInputs = [ pytest ];
buildInputs = [ opencl-headers ocl-icd ];
propagatedBuildInputs = [ numpy cffi pytools decorator appdirs six Mako ];
src = fetchPypi {
inherit pname version;
sha256 = "419375fb794d97f9bd46f0dc24ce83b5cc83d316771ba82fac80de8bf883dcdc";
};
# py.test is not needed during runtime, so remove it from `install_requires`
postPatch = ''
substituteInPlace setup.py --replace "pytest>=2" ""
'';
# gcc: error: pygpu_language_opencl.cpp: No such file or directory
doCheck = false;
meta = with stdenv.lib; {
description = "Python wrapper for OpenCL";
homepage = https://github.com/pyopencl/pyopencl;
license = licenses.mit;
maintainers = [ maintainers.fridh ];
};
}