nixpkgs/pkgs/development/python-modules/loopy/default.nix
Fabian Affolter be971bce5b python39Packages.loopy: 2020.2 -> 2020.2.1
- rename package (loo-py -> loopy)
- update inputs
- disable on older Python releases
2022-05-03 18:04:28 +02:00

56 lines
946 B
Nix

{ lib
, buildPythonPackage
, codepy
, cgen
, colorama
, fetchFromGitHub
, genpy
, islpy
, mako
, numpy
, pymbolic
, pyopencl
, pyrsistent
, pythonOlder
, pytools
}:
buildPythonPackage rec {
pname = "loopy";
version = "2020.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "inducer";
repo = pname;
rev = "v${version}";
hash = "sha256-GL2GY3fbP9yMEQYyuh4CRHpeN9DGnZxbMt6jC+O/C0g=";
};
propagatedBuildInputs = [
codepy
cgen
colorama
genpy
islpy
mako
numpy
pymbolic
pyopencl
pyrsistent
pytools
];
# 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";
homepage = "https://github.com/inducer/loopy";
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
};
}