2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, codepy
|
2020-04-24 23:36:52 +00:00
|
|
|
, cgen
|
|
|
|
, colorama
|
2022-04-27 09:35:20 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, genpy
|
|
|
|
, islpy
|
2020-04-24 23:36:52 +00:00
|
|
|
, mako
|
2022-04-27 09:35:20 +00:00
|
|
|
, numpy
|
|
|
|
, pymbolic
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyopencl
|
2022-04-27 09:35:20 +00:00
|
|
|
, pyrsistent
|
|
|
|
, pythonOlder
|
|
|
|
, pytools
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "loopy";
|
|
|
|
version = "2020.2.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inducer";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-GL2GY3fbP9yMEQYyuh4CRHpeN9DGnZxbMt6jC+O/C0g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
codepy
|
2020-04-24 23:36:52 +00:00
|
|
|
cgen
|
|
|
|
colorama
|
2022-04-27 09:35:20 +00:00
|
|
|
genpy
|
|
|
|
islpy
|
2020-04-24 23:36:52 +00:00
|
|
|
mako
|
2022-04-27 09:35:20 +00:00
|
|
|
numpy
|
|
|
|
pymbolic
|
2020-04-24 23:36:52 +00:00
|
|
|
pyopencl
|
2022-04-27 09:35:20 +00:00
|
|
|
pyrsistent
|
|
|
|
pytools
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# pyopencl._cl.LogicError: clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A code generator for array-based code on CPUs and GPUs";
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://github.com/inducer/loopy";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|