mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 11:20:10 +00:00
python3Packages.petsctools: init at 2025.2
This commit is contained in:
53
pkgs/development/python-modules/petsctools/default.nix
Normal file
53
pkgs/development/python-modules/petsctools/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user