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

45 lines
847 B
Nix
Raw Normal View History

2016-11-14 12:23:53 +01:00
{ stdenv
, fetchPypi
2016-11-14 12:23:53 +01:00
, buildPythonPackage
, sphinx
, pytestcov
, pytest
, Mako
, numpy
, funcsigs
, withCuda ? false, pycuda
, withOpenCL ? true, pyopencl
}:
buildPythonPackage rec {
pname = "reikna";
2018-07-22 12:19:44 +02:00
version = "0.7.0";
2016-11-14 12:23:53 +01:00
src = fetchPypi {
inherit pname version;
2018-07-22 12:19:44 +02:00
sha256 = "e27af9a202b8cdedd07793abbd3282806ec724aba091a27c76d7ba8284cfd8ba";
2016-11-14 12:23:53 +01:00
};
checkInputs = [ sphinx pytestcov pytest ];
2016-11-14 12:23:53 +01:00
propagatedBuildInputs = [ Mako numpy funcsigs ]
++ stdenv.lib.optional withCuda pycuda
++ stdenv.lib.optional withOpenCL pyopencl;
checkPhase = ''
py.test
'';
# Requires device
doCheck = false;
meta = {
description = "GPGPU algorithms for PyCUDA and PyOpenCL";
homepage = https://github.com/fjarri/reikna;
2016-11-14 12:23:53 +01:00
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.fridh ];
2016-11-14 12:23:53 +01:00
};
}