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

45 lines
820 B
Nix
Raw Normal View History

{ lib
, fetchPypi
2016-11-14 11:23:53 +00:00
, buildPythonPackage
, sphinx
, pytestcov
, pytest
, Mako
, numpy
, funcsigs
, withCuda ? false, pycuda
, withOpenCL ? true, pyopencl
}:
buildPythonPackage rec {
pname = "reikna";
2020-03-29 12:56:39 +01:00
version = "0.7.5";
2016-11-14 11:23:53 +00:00
src = fetchPypi {
inherit pname version;
2020-03-29 12:56:39 +01:00
sha256 = "d01f4264c8379ef2962a93aacb002d491b92ef9b5b22b45f77e7821dfa87bef7";
2016-11-14 11:23:53 +00:00
};
checkInputs = [ sphinx pytestcov 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
};
}