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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2024.1";
|
2022-04-27 09:35:20 +00:00
|
|
|
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;
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-R0Wry4r8Y7VKqsyrZ3odEOUy4T9di9rFQzq7BD0LG58=";
|
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
|
|
|
};
|
|
|
|
}
|