tests_secrets_generate: mark as pure

This commit is contained in:
Jörg Thalheim
2025-08-14 17:54:00 +02:00
parent d44b43a937
commit c4d9b39a17
3 changed files with 10 additions and 1 deletions

View File

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

View File

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

View File

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