nixpkgs/pkgs/development/python-modules/reikna/default.nix

45 lines
822 B
Nix
Raw Normal View History

{ lib
, fetchPypi
2016-11-14 11:23:53 +00:00
, buildPythonPackage
, sphinx
, pytest-cov
2016-11-14 11:23:53 +00:00
, pytest
, Mako
, numpy
, funcsigs
, withCuda ? false, pycuda
, withOpenCL ? true, pyopencl
}:
buildPythonPackage rec {
pname = "reikna";
2021-11-25 22:47:11 +00:00
version = "0.7.6";
2016-11-14 11:23:53 +00:00
src = fetchPypi {
inherit pname version;
2021-11-25 22:47:11 +00:00
sha256 = "722fefbd253d0bbcbf5250b7b9c4aca5722cde4ca38bfbf863a551a5fc26edfa";
2016-11-14 11:23:53 +00:00
};
checkInputs = [ sphinx pytest-cov pytest ];
2016-11-14 11:23:53 +00:00
propagatedBuildInputs = [ Mako numpy funcsigs ]
++ lib.optional withCuda pycuda
++ lib.optional withOpenCL pyopencl;
2016-11-14 11:23:53 +00:00
checkPhase = ''
py.test
'';
# Requires device
doCheck = false;
meta = with lib; {
2016-11-14 11:23:53 +00:00
description = "GPGPU algorithms for PyCUDA and PyOpenCL";
homepage = "https://github.com/fjarri/reikna";
license = licenses.mit;
maintainers = [ maintainers.fridh ];
2016-11-14 11:23:53 +00:00
};
}