Skip to content

Commit 36e386d

Browse files
committed
python312Packages.pyadjoint-ad: init at 2025.04.0
1 parent fb44ac9 commit 36e386d

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
setuptools,
6+
scipy,
7+
checkpoint-schedules,
8+
pytestCheckHook,
9+
}:
10+
11+
buildPythonPackage rec {
12+
pname = "pyadjoint-ad";
13+
version = "2025.04.0";
14+
pyproject = true;
15+
16+
src = fetchFromGitHub {
17+
owner = "dolfin-adjoint";
18+
repo = "pyadjoint";
19+
tag = version;
20+
hash = "sha256-ZNd8aJJ87OfQakScrkYqhCAh7qGctW/uqIoQjX5VEhI=";
21+
};
22+
23+
build-system = [
24+
setuptools
25+
];
26+
27+
dependencies = [
28+
scipy
29+
checkpoint-schedules
30+
];
31+
32+
pythonImportsCheck = [
33+
# The firedrake_adjoint module is deprecated and requires a cyclic dependency of firedrake
34+
# "firedrake_adjoint"
35+
"numpy_adjoint"
36+
"pyadjoint"
37+
"pyadjoint.optimization"
38+
];
39+
40+
nativeCheckInputs = [ pytestCheckHook ];
41+
42+
pytestFlagsArray = [
43+
"tests/pyadjoint"
44+
];
45+
46+
meta = {
47+
homepage = "https://github.com/dolfin-adjoint/pyadjoint";
48+
description = "High-level automatic differentiation library";
49+
license = lib.licenses.lgpl3Only;
50+
maintainers = with lib.maintainers; [ qbisi ];
51+
};
52+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11824,6 +11824,8 @@ self: super: with self; {
1182411824

1182511825
pyacoustid = callPackage ../development/python-modules/pyacoustid { };
1182611826

11827+
pyadjoint-ad = callPackage ../development/python-modules/pyadjoint-ad { };
11828+
1182711829
pyads = callPackage ../development/python-modules/pyads { };
1182811830

1182911831
pyaehw4a1 = callPackage ../development/python-modules/pyaehw4a1 { };

0 commit comments

Comments
 (0)