Update flake
Some checks failed
build / build (push) Failing after 55s

This commit is contained in:
2025-09-16 00:13:07 +02:00
parent 708e7e141b
commit b341e61333
6 changed files with 77 additions and 69 deletions

View File

@@ -55,13 +55,12 @@
# Base Python package set from pyproject.nix
baseSet = pkgs.callPackage pyproject-nix.build.packages {
python = pkgs.python312;
python = pkgs.python313;
};
# An overlay of build fixups & test additions
pyprojectOverrides = (
final: prev: {
huecli = prev.huecli.overrideAttrs (old: {
# Add tests to passthru.tests
@@ -69,7 +68,6 @@
# These attribute are used in Flake checks.
passthru = old.passthru // {
tests = (old.tests or { }) // {
# Run mypy checks
mypy =
let
@@ -95,7 +93,6 @@
});
}
);
in
baseSet.overrideScope (
lib.composeManyExtensions [
@@ -136,9 +133,9 @@
mkdir -p $out/bin
ln -s ${venv}/bin/huecli $out/bin/huecli
installShellCompletion --cmd huecli \
--bash <($out/bin/huecli --show-completion bash) \
--zsh <($out/bin/huecli --show-completion zsh) \
--fish <($out/bin/huecli --show-completion fish)
--bash <($out/bin/huecli --show-completion bash) \
--zsh <($out/bin/huecli --show-completion zsh) \
--fish <($out/bin/huecli --show-completion fish)
'';
};
}
@@ -154,9 +151,7 @@
let
pkgs = nixpkgs.legacyPackages.${system};
editablePythonSet = pythonSets.${system}.overrideScope editableOverlay;
venv = editablePythonSet.mkVirtualEnv "huecli-dev-env" {
huecli = [ "dev" ];
};
venv = editablePythonSet.mkVirtualEnv "huecli-dev-env" workspace.deps.all;
in
{
default = pkgs.mkShell {
@@ -164,10 +159,15 @@
venv
pkgs.uv
];
env = {
UV_NO_SYNC = "1";
UV_PYTHON = "${venv}/bin/python";
UV_PYTHON_DOWNLOADS = "never";
};
shellHook = ''
unset PYTHONPATH
export REPO_ROOT=$(git rev-parse --show-toplevel)
export UV_NO_SYNC=1
'';
};
}