nixpkgs/pkgs/development/python-modules/pyopencl/default.nix
R. RyanTM 1bdc484b3a python37Packages.pyopencl: 2019.1 -> 2019.1.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-pyopencl/versions
2019-09-28 10:49:42 -07:00

50 lines
1011 B
Nix

{ stdenv
, fetchPypi
, buildPythonPackage
, Mako
, pytest
, numpy
, cffi
, pytools
, decorator
, appdirs
, six
, opencl-headers
, ocl-icd
, pybind11
}:
buildPythonPackage rec {
pname = "pyopencl";
version = "2019.1.1";
checkInputs = [ pytest ];
buildInputs = [ opencl-headers ocl-icd pybind11 ];
propagatedBuildInputs = [ numpy cffi pytools decorator appdirs six Mako ];
src = fetchPypi {
inherit pname version;
sha256 = "0g5n1c8gfqhfrfpzdypzwfj1q1nlqzcfjrx397cs6qqw67mg095k";
};
# py.test is not needed during runtime, so remove it from `install_requires`
postPatch = ''
substituteInPlace setup.py --replace "pytest>=2" ""
'';
preBuild = ''
export HOME=$(mktemp -d)
'';
# 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 ];
};
}