From f26a7d5a781f640182855c16281f84a2bf66daaf Mon Sep 17 00:00:00 2001 From: Alexander Tsvyashchenko Date: Thu, 30 Dec 2021 18:17:32 +0100 Subject: [PATCH] python3Packages.treeo: init at 0.0.9 --- .../python-modules/treeo/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/treeo/default.nix diff --git a/pkgs/development/python-modules/treeo/default.nix b/pkgs/development/python-modules/treeo/default.nix new file mode 100644 index 000000000000..3629b47e8a29 --- /dev/null +++ b/pkgs/development/python-modules/treeo/default.nix @@ -0,0 +1,41 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e44ce2f45e82..620dad816cc4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9742,6 +9742,8 @@ in { transmissionrpc = callPackage ../development/python-modules/transmissionrpc { }; + treeo = callPackage ../development/python-modules/treeo { }; + treq = callPackage ../development/python-modules/treq { }; trezor_agent = callPackage ../development/python-modules/trezor_agent { };