Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 86 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ lib, stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, writableTmpDirAsHomeHook,
# build-system hatchling,
# dependencies pytools, pymbolic, genpy, numpy, cgen, islpy, codepy, colorama, mako, constantdict, typing-extensions,
# optional-dependencies pyopencl, fparser, ply,}:
buildPythonPackage rec { pname = "loopy"; version = "2025.2"; pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub { owner = "inducer"; repo = "loopy"; tag = "v${version}"; hash = "sha256-VgsUOMCIg61mYNDMcGpMs5I1CkobhUFVjoQFdD8Vchs="; fetchSubmodules = true; # submodule at `loopy/target/c/compyte` };
build-system = [ hatchling ];
nativeBuildInputs = [ writableTmpDirAsHomeHook ];
dependencies = [ pytools pymbolic genpy numpy cgen islpy codepy colorama mako constantdict typing-extensions ];
optional-dependencies = { pyopencl = [ pyopencl ]; fortran = [ fparser ply ]; };
pythonImportsCheck = [ "loopy" ];
# pyopencl._cl.LogicError: clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR doCheck = false;
meta = { description = "Code generator for array-based code on CPUs and GPUs"; homepage = "https://github.com/inducer/loopy"; changelog = "https://github.com/inducer/loopy/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ tomasajt ]; };}