From ff5d2264802e994997ab7fdbd14d88255bab671e Mon Sep 17 00:00:00 2001 From: Xarvex Date: Sun, 16 Jun 2024 02:59:59 -0500 Subject: [PATCH] fix(flake): resolve mypy access to libraries --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 2549173e..ccca2cb7 100644 --- a/flake.nix +++ b/flake.nix @@ -50,6 +50,7 @@ python312Packages.pyusb # fixes the pyusb 'No backend available' when installed directly via pip python312Packages.venvShellHook # Initializes a venv in $venvDir ruff # Ruff cannot be installed via pip + mypy # MyPy cannot be installed via pip libgcc glib @@ -81,9 +82,12 @@ unset SOURCE_DATE_EPOCH echo Installing dependencies into virtual environment + pip install PySide6==6.6.2 # 6.6.3 has faulty .pyi files pip install -r requirements.txt pip install -r requirements-dev.txt - pip uninstall -y ruff # Hacky solution to not fight with other dev deps + # Hacky solution to not fight with other dev deps + # May show failure if skipped due to same version with nixpkgs + pip uninstall -y mypy ruff ''; # set the environment variables that Qt apps expect