File tree Expand file tree Collapse file tree 3 files changed +98
-0
lines changed
development/python-modules Expand file tree Collapse file tree 3 files changed +98
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ fetchFromGitHub ,
5+ setuptools ,
6+ numpy ,
7+ pytestCheckHook ,
8+ } :
9+
10+ buildPythonPackage rec {
11+ pname = "checkpoint-schedules" ;
12+ version = "1.0.4" ;
13+ pyproject = true ;
14+
15+ src = fetchFromGitHub {
16+ owner = "firedrakeproject" ;
17+ repo = "checkpoint_schedules" ;
18+ tag = "v${ version } " ;
19+ hash = "sha256-3bn/KxxtRLRtOHFeULQdnndonpuhuYLL8/y/zoAurzY=" ;
20+ } ;
21+
22+ build-system = [ setuptools ] ;
23+
24+ dependencies = [
25+ numpy
26+ ] ;
27+
28+ pythonImportsCheck = [
29+ "checkpoint_schedules"
30+ ] ;
31+
32+ nativeCheckInputs = [ pytestCheckHook ] ;
33+
34+ meta = {
35+ homepage = "https://www.firedrakeproject.org/checkpoint_schedules" ;
36+ downloadPage = "https://github.com/firedrakeproject/checkpoint_schedules" ;
37+ description = "Schedules for incremental checkpointing of adjoint simulations" ;
38+ changelog = "https://github.com/firedrakeproject/checkpoint_schedules/releases/tag/${ src . tag } " ;
39+ license = lib . licenses . lgpl3Only ;
40+ maintainers = with lib . maintainers ; [ qbisi ] ;
41+ } ;
42+ }
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 @@ -2404,6 +2404,8 @@ self: super: with self; {
24042404
24052405 checkdmarc = callPackage ../development/python-modules/checkdmarc { };
24062406
2407+ checkpoint-schedules = callPackage ../development/python-modules/checkpoint-schedules { };
2408+
24072409 checksumdir = callPackage ../development/python-modules/checksumdir { };
24082410
24092411 cheetah3 = callPackage ../development/python-modules/cheetah3 { };
@@ -11842,6 +11844,8 @@ self: super: with self; {
1184211844
1184311845 pyacoustid = callPackage ../development/python-modules/pyacoustid { };
1184411846
11847+ pyadjoint-ad = callPackage ../development/python-modules/pyadjoint-ad { };
11848+
1184511849 pyads = callPackage ../development/python-modules/pyads { };
1184611850
1184711851 pyaehw4a1 = callPackage ../development/python-modules/pyaehw4a1 { };
You can’t perform that action at this time.
0 commit comments