mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
1bdc484b3a
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
50 lines
1011 B
Nix
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 ];
|
|
};
|
|
}
|