10 buildPythonPackage rec {
12 # Note that there is a version 0.4.0, but it was released in error. At the
13 # time of writing (2022-03-29), v0.0.11 is the latest as reported on GitHub
18 src = fetchFromGitHub {
21 rev = "refs/tags/${version}";
22 hash = "sha256-0py7sKjq6WqdsZwTq61jqaIbULTfwtpz29TTpt8M2Zw=";
25 # See https://github.com/cgarciae/treex/issues/68.
28 url = "https://github.com/cgarciae/treeo/pull/14/commits/022915da2b3bf76406a7c79d1b4593bee7956f16.patch";
29 hash = "sha256-WGxJqqrf2g0yZe30RyG1xxbloiqj1awuf1Y4eh5y+z0=";
32 url = "https://github.com/cgarciae/treeo/pull/14/commits/99f9488bd0c977780844fd79743167b0010d359b.patch";
33 hash = "sha256-oKDYs+Ah0QXkhiJysIudQ6VLIiUiIcnQisxYp6GJuTc=";
41 # jax is not declared in the dependencies, but is necessary.
42 propagatedBuildInputs = [
46 nativeCheckInputs = [ jaxlib ];
47 pythonImportsCheck = [
52 description = "A small library for creating and manipulating custom JAX Pytree classes.";
53 homepage = "https://github.com/cgarciae/treeo";
54 license = licenses.mit;
55 maintainers = with maintainers; [ ndl ];
56 # obsolete as of 2023-02-27 and not updated for more than a year as of 2023-08