nixpkgs/pkgs/development/python-modules/reikna/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

46 lines
838 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";
format = "setuptools";
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 ];
};
}