move nixosTestLib to pkgs/testing

This commit is contained in:
Jörg Thalheim
2025-07-02 16:03:01 +02:00
parent c148ece02e
commit 1e7453ab04
11 changed files with 100 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
{
perSystem =
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
legacyPackages = {
setupNixInNix = ''
@@ -21,6 +21,25 @@
fi
'';
# NixOS test library combining port utils and clan VM test utilities
nixosTestLib = pkgs.python3Packages.buildPythonPackage {
pname = "nixos-test-lib";
version = "1.0.0";
format = "pyproject";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./pyproject.toml
./nixos_test_lib
];
};
nativeBuildInputs = with pkgs.python3Packages; [
setuptools
wheel
];
doCheck = false;
};
};
};
}