nixpkgs/pkgs/development/python-modules/reikna/default.nix
2018-08-25 18:07:16 +02:00

45 lines
847 B
Nix

{ stdenv
, fetchPypi
, buildPythonPackage
, sphinx
, pytestcov
, pytest
, Mako
, numpy
, funcsigs
, withCuda ? false, pycuda
, withOpenCL ? true, pyopencl
}:
buildPythonPackage rec {
pname = "reikna";
version = "0.7.1";
src = fetchPypi {
inherit pname version;
sha256 = "0afc5d502cc9ba0dadd88c15d72e2fdaa09fee31faaae5064889732de7940953";
};
checkInputs = [ sphinx pytestcov pytest ];
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;
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.fridh ];
};
}