python3Packages.petsctools: init at 2025.2

This commit is contained in:
qbisi
2025-10-04 06:47:48 +08:00
parent 4f0a8ff6ce
commit 45531d9caa
2 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
packaging,
petsc4py,
slepc4py,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "petsctools";
version = "2025.2";
pyproject = true;
src = fetchFromGitHub {
owner = "firedrakeproject";
repo = "petsctools";
tag = version;
hash = "sha256-DC0jFybDEacA6otYvID5DfbUe1ANz5W4UmPXCSsRvOo=";
};
build-system = [
setuptools
];
dependencies = [
packaging
];
optional-dependencies = {
petsc4py = [ petsc4py ];
slepc4py = [ slepc4py ];
};
pythonImportsCheck = [
"petsctools"
];
nativeCheckInputs = [
pytestCheckHook
]
++ optional-dependencies.petsc4py;
meta = {
homepage = "https://github.com/firedrakeproject/petsctools";
description = "Pythonic extensions for petsc4py and slepc4py";
changelog = "https://github.com/firedrakeproject/petsctools/releases/tag/${src.tag}";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ qbisi ];
};
}

View File

@@ -11672,6 +11672,8 @@ self: super: with self; {
}
);
petsctools = callPackage ../development/python-modules/petsctools { };
pettingzoo = callPackage ../development/python-modules/pettingzoo { };
pex = callPackage ../development/python-modules/pex { };