python3Packages.treex: relax constraints

This commit is contained in:
be7a 2022-01-15 18:36:42 +01:00
parent b642cf7a23
commit 40f390988f
2 changed files with 6 additions and 19 deletions

View File

@ -27,9 +27,12 @@ buildPythonPackage rec {
sha256 = "1hl3wj71c7cp7jzkhyjy7xgs2vc8c89icq0bgfr49y4pwv69n43m";
};
patches = [
./relax-deps.patch
];
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"'
'';
nativeBuildInputs = [
poetry-core

View File

@ -1,16 +0,0 @@
diff --git a/pyproject.toml b/pyproject.toml
index f0ff8a0..56787ca 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -16,9 +16,9 @@ secondary = true
[tool.poetry.dependencies]
python = "^3.7"
flax = "^0.3.4"
-PyYAML = "^5.4.1"
+PyYAML = ">=5.4.1"
rich = "^10.7.0"
-optax = "^0.0.9"
+optax = ">=0.0.9"
einops = "^0.3.2"
treeo = "^0.0.9"
# treeo = { path = "../treeo", develop = true }