0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

python312Packages.loopy: 2024.1 -> 2025.1

This commit is contained in:
qbisi 2025-05-02 01:54:26 +08:00
parent cf17eba690
commit 7585a99587

View file

@ -1,60 +1,75 @@
{ {
lib, lib,
stdenv,
buildPythonPackage, buildPythonPackage,
codepy,
cgen,
colorama,
fetchFromGitHub,
genpy,
immutables,
islpy,
mako,
numpy,
pymbolic,
pyopencl,
pyrsistent,
pythonOlder, pythonOlder,
fetchFromGitHub,
writableTmpDirAsHomeHook,
# build-system
hatchling,
# dependencies
pytools, pytools,
setuptools, pymbolic,
genpy,
numpy,
cgen,
islpy,
codepy,
colorama,
mako,
constantdict,
typing-extensions, typing-extensions,
# optional-dependencies
pyopencl,
fparser,
ply,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "loopy"; pname = "loopy";
version = "2024.1"; version = "2025.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "inducer"; owner = "inducer";
repo = "loopy"; repo = "loopy";
tag = "v${version}"; tag = "v${version}";
hash = "sha256-mU8vXEPR88QpJpzXZlZdDhMtlwIx5YpeYhXU8Vw2T9g="; hash = "sha256-3Ebnje+EBw2Jdp2xLqffWx592OoUrSdRDXQkw6FpEzc=";
fetchSubmodules = true; # submodule at `loopy/target/c/compyte` fetchSubmodules = true; # submodule at `loopy/target/c/compyte`
}; };
build-system = [ setuptools ]; build-system = [ hatchling ];
nativeBuildInputs = [ writableTmpDirAsHomeHook ];
dependencies = [ dependencies = [
codepy
cgen
colorama
genpy
immutables
islpy
mako
numpy
pymbolic
pyopencl
pyrsistent
pytools pytools
pymbolic
genpy
numpy
cgen
islpy
codepy
colorama
mako
constantdict
typing-extensions typing-extensions
]; ];
postConfigure = '' optional-dependencies = {
export HOME=$(mktemp -d) pyopencl = [
''; pyopencl
];
fortran = [
fparser
ply
];
};
pythonImportsCheck = [ "loopy" ]; pythonImportsCheck = [ "loopy" ];
@ -64,6 +79,7 @@ buildPythonPackage rec {
meta = { meta = {
description = "Code generator for array-based code on CPUs and GPUs"; description = "Code generator for array-based code on CPUs and GPUs";
homepage = "https://github.com/inducer/loopy"; homepage = "https://github.com/inducer/loopy";
changelog = "https://github.com/inducer/loopy/releases/tag/${src.tag}";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tomasajt ]; maintainers = with lib.maintainers; [ tomasajt ];
}; };