From 49e6626ca8eafd45375a47c42f3952d475ad91b5 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 5 Apr 2026 09:37:24 +0000 Subject: [PATCH] python3Packages.dm-tree: 0.1.9 -> 0.1.10 Diff: https://github.com/deepmind/tree/compare/0.1.9...0.1.10 Changelog: https://github.com/google-deepmind/tree/releases/tag/0.1.10 --- .../python-modules/dm-tree/default.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/dm-tree/default.nix b/pkgs/development/python-modules/dm-tree/default.nix index 3e9b803192fc..45792a3f70d5 100644 --- a/pkgs/development/python-modules/dm-tree/default.nix +++ b/pkgs/development/python-modules/dm-tree/default.nix @@ -19,16 +19,16 @@ numpy, wrapt, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "dm-tree"; - version = "0.1.9"; + version = "0.1.10"; pyproject = true; src = fetchFromGitHub { owner = "deepmind"; repo = "tree"; - tag = version; - hash = "sha256-cHuaqA89r90TCPVHNP7B1cfK+WxqmfTXndJ/dRdmM24="; + tag = finalAttrs.version; + hash = "sha256-L1DOwgJriFoS0rf6g+f3qcw94Q/ia4N6kZ1ai6F/Qng="; }; # Allows to forward cmake args through the conventional `cmakeFlags` postPatch = '' @@ -36,10 +36,6 @@ buildPythonPackage rec { --replace-fail \ "cmake_args = [" \ 'cmake_args = [ *os.environ.get("cmakeFlags", "").split(),' - substituteInPlace tree/CMakeLists.txt \ - --replace-fail \ - "CMAKE_CXX_STANDARD 14" \ - "CMAKE_CXX_STANDARD 17" ''; cmakeFlags = [ (lib.cmakeBool "USE_SYSTEM_ABSEIL" true) @@ -71,13 +67,13 @@ buildPythonPackage rec { pythonImportsCheck = [ "tree" ]; meta = { - description = "Tree is a library for working with nested data structures"; + description = "Python library for working with nested data structures"; homepage = "https://github.com/deepmind/tree"; - changelog = "https://github.com/google-deepmind/tree/releases/tag/${version}"; + changelog = "https://github.com/google-deepmind/tree/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ samuela ndl ]; }; -} +})