retool: use pythonRelaxDepsHook

This commit is contained in:
Thiago Kenji Okada 2023-09-11 19:18:18 +01:00 committed by Anderson Torres
parent 54bc9b45a3
commit a5d727ed98
2 changed files with 7 additions and 31 deletions

View File

@ -19,17 +19,18 @@ python3.pkgs.buildPythonApplication {
hash = "sha256-6y/7RR7O2xYKXdxaFtkRfnSlwygp/LRDUozUJo6ue7s=";
};
patches = [
# pythonRelaxDepsHook will not work in this package until
# https://github.com/NixOS/nixpkgs/pull/248516 hits master
./relax_deps.patch
];
nativeBuildInputs = with python3.pkgs; [
poetry-core
pythonRelaxDepsHook
qt6.wrapQtAppsHook
];
pythonRelaxDeps = true;
# ERROR: Could not find a version that satisfies the requirement PySide6 (from retool) (from versions: none)
# ERROR: No matching distribution found for PySide6
pythonRemoveDeps = [ "PySide6" ];
buildInputs = [
qt6.qtbase
] ++

View File

@ -1,25 +0,0 @@
diff --git a/pyproject.toml b/pyproject.toml
index 6e62347..34600a0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -13,12 +13,14 @@ packages = [
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
-strictyaml = "^1.6.2"
-lxml = "^4.9.2"
-PySide6 = "^6.4.2"
-validators = "^0.20.0"
-alive-progress = "^3.0.1"
-psutil = "^5.9.4"
+strictyaml = "*"
+lxml = "*"
+# ERROR: Could not find a version that satisfies the requirement PySide6 (from retool) (from versions: none)
+# ERROR: No matching distribution found for PySide6
+# PySide6 = "*"
+validators = "*"
+alive-progress = "*"
+psutil = "*"
[tool.poetry.scripts]
retool = "retool:main"