Merge pull request 'tests_secrets_generate: mark as pure' (#4766) from no-impure into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4766
This commit is contained in:
Mic92
2025-08-15 11:06:47 +00:00
5 changed files with 12 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ if TYPE_CHECKING:
from .age_keys import KeyPair
@pytest.mark.impure
@pytest.mark.with_core
def test_generate_secret(
monkeypatch: pytest.MonkeyPatch,
test_flake_with_core: FlakeForTest,

View File

@@ -17,6 +17,8 @@
pythonRuntime,
setupNixInNix,
templateDerivation,
zerotierone,
minifakeroot,
}:
let
pyDeps = ps: [
@@ -215,7 +217,10 @@ pythonRuntime.pkgs.buildPythonApplication {
pkgs.mkpasswd
pkgs.xkcdpass
pkgs.pass
zerotierone
minifakeroot
nix-select
../../nixosModules/clanCore/zerotier/generate.py
# needed by flash list tests
nixpkgs.legacyPackages.x86_64-linux.kbd

View File

@@ -23,6 +23,8 @@
"flake.lock"
"templates"
"clanServices"
"pkgs/zerotierone"
"pkgs/minifakeroot"
];
};
};
@@ -44,6 +46,7 @@
clan-cli = pkgs.callPackage ./default.nix {
inherit (inputs) nixpkgs nix-select;
inherit (self.legacyPackages.${system}) setupNixInNix;
inherit (self'.packages) zerotierone minifakeroot;
templateDerivation = templateDerivation;
pythonRuntime = pkgs.python3;
clan-core-path = clanCoreWithVendoredDeps;
@@ -55,6 +58,7 @@
clan-cli-full = pkgs.callPackage ./default.nix {
inherit (inputs) nixpkgs nix-select;
inherit (self.legacyPackages.${system}) setupNixInNix;
inherit (self'.packages) zerotierone minifakeroot;
clan-core-path = clanCoreWithVendoredDeps;
templateDerivation = templateDerivation;
pythonRuntime = pkgs.python3;