25 patchCMakeAbseil = fetchpatch {
26 name = "0001-don-t-rebuild-abseil.patch";
27 url = "https://raw.githubusercontent.com/conda-forge/dm-tree-feedstock/93a91aa2c13240cecf88133e2885ade9121b464a/recipe/patches/0001-don-t-rebuild-abseil.patch";
28 hash = "sha256-bho7lXAV5xHkPmWy94THJtx+6i+px5w6xKKfThvBO/M=";
30 patchCMakePybind = fetchpatch {
31 name = "0002-don-t-fetch-pybind11.patch";
32 url = "https://raw.githubusercontent.com/conda-forge/dm-tree-feedstock/93a91aa2c13240cecf88133e2885ade9121b464a/recipe/patches/0002-don-t-fetch-pybind11.patch";
33 hash = "sha256-41XIouQ4Fm1yewaxK9erfcnkGBS6vgdvMm/DyF0rsKg=";
36 buildPythonPackage rec {
41 src = fetchFromGitHub {
44 rev = "refs/tags/${version}";
45 hash = "sha256-VvSJTuEYjIz/4TTibSLkbg65YmcYqHImTHOomeorMJc=";
51 ] ++ (lib.optional stdenv.hostPlatform.isDarwin ./0003-don-t-configure-apple.patch);
53 dontUseCmakeConfigure = true;
65 build-system = [ setuptools ];
74 pythonImportsCheck = [ "tree" ];
77 description = "Tree is a library for working with nested data structures";
78 homepage = "https://github.com/deepmind/tree";
79 changelog = "https://github.com/google-deepmind/tree/releases/tag/${version}";
80 license = lib.licenses.asl20;
81 maintainers = with lib.maintainers; [