Skip to content

Commit 4c245cd

Browse files
committed
python3Packages.orbax-checkpoint: migrate to finalAttrs
1 parent 32d91aa commit 4c245cd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • pkgs/development/python-modules/orbax-checkpoint

pkgs/development/python-modules/orbax-checkpoint/default.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@
3737
torch,
3838
}:
3939

40-
buildPythonPackage rec {
40+
buildPythonPackage (finalAttrs: {
4141
pname = "orbax-checkpoint";
4242
version = "0.11.33";
4343
pyproject = true;
4444

4545
src = fetchFromGitHub {
4646
owner = "google";
4747
repo = "orbax";
48-
tag = "v${version}";
48+
tag = "v${finalAttrs.version}";
4949
hash = "sha256-ibHV+MwQvlh2USeDVAUWEJxCS1MGuPZRnZZTBWFO7UQ=";
5050
};
5151

52-
sourceRoot = "${src.name}/checkpoint";
52+
sourceRoot = "${finalAttrs.src.name}/checkpoint";
5353

5454
build-system = [ flit-core ];
5555

@@ -165,8 +165,8 @@ buildPythonPackage rec {
165165
meta = {
166166
description = "Orbax provides common utility libraries for JAX users";
167167
homepage = "https://github.com/google/orbax/tree/main/checkpoint";
168-
changelog = "https://github.com/google/orbax/blob/v${version}/checkpoint/CHANGELOG.md";
168+
changelog = "https://github.com/google/orbax/blob/v${finalAttrs.version}/checkpoint/CHANGELOG.md";
169169
license = lib.licenses.asl20;
170170
maintainers = with lib.maintainers; [ fab ];
171171
};
172-
}
172+
})

0 commit comments

Comments
 (0)