blob: 425ea8e135f3d3c4b75aae05fdabc7e7db1272d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
packaging,
petsc4py,
slepc4py,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "petsctools";
version = "2025.3";
pyproject = true;
src = fetchFromGitHub {
owner = "firedrakeproject";
repo = "petsctools";
tag = finalAttrs.version;
hash = "sha256-5SV34KhympX58lWfFaQo5lVOeafcc/Y8HvYtZtY+4Eo=";
};
build-system = [
setuptools
];
dependencies = [
packaging
];
optional-dependencies = {
petsc4py = [ petsc4py ];
slepc4py = [ slepc4py ];
};
pythonImportsCheck = [
"petsctools"
];
nativeCheckInputs = [
pytestCheckHook
]
++ finalAttrs.passthru.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/${finalAttrs.version}";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ qbisi ];
};
})
|