depot/third_party/nixpkgs/pkgs/development/python-modules/reikna/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

51 lines
832 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
sphinx,
pytest-cov,
pytest,
mako,
numpy,
funcsigs,
withCuda ? false,
pycuda,
withOpenCL ? true,
pyopencl,
}:
buildPythonPackage rec {
pname = "reikna";
version = "0.8.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-fpa1Pfo5EAafg7Pgha17G6k5G13fdErjclv0On/uYyI=";
};
nativeCheckInputs = [
sphinx
pytest-cov
pytest
];
propagatedBuildInputs = [
mako
numpy
funcsigs
] ++ lib.optional withCuda pycuda ++ lib.optional withOpenCL pyopencl;
checkPhase = ''
py.test
'';
# Requires device
doCheck = false;
meta = with lib; {
description = "GPGPU algorithms for PyCUDA and PyOpenCL";
homepage = "https://github.com/fjarri/reikna";
license = licenses.mit;
};
}