File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed
development/python-modules/pyadjoint-ad Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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 { };
You can’t perform that action at this time.
0 commit comments