diff --git a/pkgs/development/python-modules/reikna/default.nix b/pkgs/development/python-modules/reikna/default.nix new file mode 100644 index 000000000000..14ebe52eae9e --- /dev/null +++ b/pkgs/development/python-modules/reikna/default.nix @@ -0,0 +1,45 @@ +{ 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.7"; + + src = fetchurl { + url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; + sha256 = "810b349eb9339aa0d13bca99a3d8a380972708474b8c0990d188ec6074358d62"; + }; + + 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 = http://github.com/fjarri/reikna; + license = stdenv.lib.licenses.mit; + maintainer = stdenv.lib.maintainers.fridh; + + }; + +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c772e34b379b..7f4d4594ca42 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -21852,6 +21852,8 @@ in { }; }; + reikna = callPackage ../development/python-modules/reikna { }; + repocheck = buildPythonPackage rec { name = "repocheck-2015-08-05"; disabled = isPy26 || isPy27;