Skip to content

Commit

Permalink
this doesn't work either
Browse files Browse the repository at this point in the history
  • Loading branch information
mginoya committed Nov 23, 2024
1 parent c26c0ca commit 59a9f60
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 19 deletions.
2 changes: 1 addition & 1 deletion nix/orbax-checkpoint.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ buildPythonPackage rec {
description = "Checkpointing library for JAX-based models";
license = licenses.asl20;
homepage = "https://github.com/google/orbax";
};
};
}
67 changes: 49 additions & 18 deletions nix/tensorstore.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,61 @@
# { buildPythonPackage
# , fetchFromGitHub
# , setuptools
# , pkgs
# }:

# buildPythonPackage rec {
# name = "tensorstore";

# src = fetchFromGitHub {
# owner = "google";
# repo = "tensorstore";
# rev = "v0.1.60";
# hash = "sha256-rT0R1x51xHAElPwernUjBIIneRhncnsohMRAIhXyaYk=";
# };
# format = "pyproject";

# buildinputs = [
# pkgs.bazel
# ];

# propagatedBuildInputs = [
# setuptools
# ];

# preConfigure = ''
# export HOME=$PWD
# '';

# }

{ buildPythonPackage
, fetchFromGitHub
, setuptools
, fetchPypi
, pkgs
, pip
, lib
, setuptools
}:

buildPythonPackage rec {
name = "tensorstore";

src = fetchFromGitHub {
owner = "google";
repo = "tensorstore";
rev = "v0.1.60";
hash = "sha256-rT0R1x51xHAElPwernUjBIIneRhncnsohMRAIhXyaYk=";
pname = "tensorstore";
version = "0.1.6";

src = fetchPypi {
inherit pname version;
sha256 = "sha256-MtzIVk6oCmF0gSFisrruxSUyNdVwIciMZNY0sORN1Jg=";
};
format = "pyproject";

buildinputs = [
pkgs.bazel
];

propagatedBuildInputs = [
pip
setuptools
];

preConfigure = ''
export HOME=$PWD
'';

# nativeBuildInputs = [pkgs.python3Packages.pip];

meta = with lib; {
description = "TensorStore";
license = licenses.asl20;
homepage = "https://github.com/google/tensorstore";
};
}

0 comments on commit 59a9f60

Please sign in to comment.