blob: fb4d5d2eec2c5cd9f601379501fcc89877aa81d4 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
scipy,
checkpoint-schedules,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "pyadjoint-ad";
version = "2025.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dolfin-adjoint";
repo = "pyadjoint";
tag = finalAttrs.version;
hash = "sha256-caW2X4q0mHnD8CEh5jjelD4xBth/R/8/P3m0tTeO/LQ=";
};
build-system = [
setuptools
];
dependencies = [
scipy
checkpoint-schedules
];
pythonImportsCheck = [
"numpy_adjoint"
"pyadjoint"
"pyadjoint.optimization"
];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [
"tests/pyadjoint"
];
meta = {
homepage = "https://github.com/dolfin-adjoint/pyadjoint";
description = "High-level automatic differentiation library";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ qbisi ];
};
})
|