mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
0215034f25
when they already rely on SRI hashes.
45 lines
813 B
Nix
45 lines
813 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, sphinx
|
|
, pytest-cov
|
|
, pytest
|
|
, mako
|
|
, numpy
|
|
, funcsigs
|
|
, withCuda ? false, pycuda
|
|
, withOpenCL ? true, pyopencl
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "reikna";
|
|
version = "0.8.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-fpa1Pfo5EAafg7Pgha17G6k5G13fdErjclv0On/uYyI=";
|
|
};
|
|
|
|
nativeCheckInputs = [ sphinx pytest-cov pytest ];
|
|
|
|
propagatedBuildInputs = [ mako numpy funcsigs ]
|
|
++ lib.optional withCuda pycuda
|
|
++ lib.optional withOpenCL pyopencl;
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
# Requires device
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "GPGPU algorithms for PyCUDA and PyOpenCL";
|
|
homepage = "https://github.com/fjarri/reikna";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.fridh ];
|
|
|
|
};
|
|
|
|
}
|