diff --git a/pkgs/development/python-modules/treex/default.nix b/pkgs/development/python-modules/treex/default.nix index 7ed83adc64d1..fb0a0c7d87c7 100644 --- a/pkgs/development/python-modules/treex/default.nix +++ b/pkgs/development/python-modules/treex/default.nix @@ -18,21 +18,23 @@ buildPythonPackage rec { pname = "treex"; - version = "0.6.9"; + version = "0.6.10"; format = "pyproject"; src = fetchFromGitHub { owner = "cgarciae"; repo = pname; rev = version; - sha256 = "1yvlldmhji12h249j14ba44hnb9x1fhrj7rh1cx2vn0vxj5wpg7x"; + hash = "sha256-ZHfgmRNbFh8DFZkmilY0pmRNQhJFqT689I7Lu8FuFm4="; }; + # At the time of writing (2022-03-29), rich is currently at version 11.0.0. + # The treeo dependency is compatible with a patch, but not marked as such in + # treex. See https://github.com/cgarciae/treex/issues/68. postPatch = '' substituteInPlace pyproject.toml \ - --replace 'rich = "^10.7.0"' 'rich = ">=10.7.0"' \ - --replace 'PyYAML = "^5.4.1"' 'PyYAML = ">=5.4.1"' \ - --replace 'optax = "^0.0.9"' 'optax = ">=0.0.9"' + --replace 'rich = "^11.2.0"' 'rich = "*"' \ + --replace 'treeo = "^0.0.10"' 'treeo = "*"' ''; nativeBuildInputs = [