depot/third_party/nixpkgs/pkgs/development/python-modules/treeo/default.nix
Default email 2495e3f88b Project import generated by Copybara.
GitOrigin-RevId: 78cd22c1b8604de423546cd49bfe264b786eca13
2022-01-03 17:56:52 +01:00

41 lines
796 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, jax
, jaxlib
, lib
, poetry-core
}:
buildPythonPackage rec {
pname = "treeo";
version = "0.0.9";
format = "pyproject";
src = fetchFromGitHub {
owner = "cgarciae";
repo = pname;
rev = version;
sha256 = "0jfqj5150braj4ybnifc6b8mp0w2j93li6bm20lcd7a19qs0lkk2";
};
nativeBuildInputs = [
poetry-core
];
# These deps are not needed for the wheel, but required during the import.
propagatedBuildInputs = [
jax
jaxlib
];
pythonImportsCheck = [
"treeo"
];
meta = with lib; {
description = "A small library for creating and manipulating custom JAX Pytree classes.";
homepage = "https://github.com/cgarciae/treeo";
license = licenses.mit;
maintainers = with maintainers; [ ndl ];
};
}