1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

python.pkgs.pyopencl: fix expression

This commit is contained in:
Frederik Rietdijk 2017-12-31 11:31:47 +01:00
parent bed35cf521
commit 0bed3b1dee

View file

@ -16,9 +16,9 @@
buildPythonPackage rec {
pname = "pyopencl";
version = "2017.2.2";
name = "${pname}-${version}";
buildInputs = [ pytest opencl-headers ocl-icd ];
checkInputs = [ pytest ];
buildInputs = [ opencl-headers ocl-icd ];
propagatedBuildInputs = [ numpy cffi pytools decorator appdirs six Mako ];
@ -27,6 +27,11 @@ buildPythonPackage rec {
sha256 = "d2f7b04d2e819c6e90d6366b7712a7452a39fba218e51b11b02c85ab07fd2983";
};
# 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;