mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 07:04:28 +00:00
46 lines
933 B
Nix
46 lines
933 B
Nix
{ stdenv
|
|
, fetchurl
|
|
, buildPythonPackage
|
|
, sphinx
|
|
, pytestcov
|
|
, pytest
|
|
, Mako
|
|
, numpy
|
|
, funcsigs
|
|
, withCuda ? false, pycuda
|
|
, withOpenCL ? true, pyopencl
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "reikna";
|
|
name = "${pname}-${version}";
|
|
version = "0.6.8";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
|
|
sha256 = "34d92786237bef9ab5d37d78f01c155d0dcd1fc24df7782af9498a9f1786890c";
|
|
};
|
|
|
|
buildInputs = [ 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 ];
|
|
|
|
};
|
|
|
|
}
|