nixos/lib/test-driver: Prevent unnecessary rebuilds

E.g. when only Nix files change
This commit is contained in:
Silvan Mosberger 2024-06-14 20:42:16 +02:00
parent ce53448104
commit b3ad661e9f

View File

@ -13,11 +13,20 @@
, extraPythonPackages ? (_ : [])
, nixosTests
}:
let
fs = lib.fileset;
in
python3Packages.buildPythonApplication {
pname = "nixos-test-driver";
version = "1.1";
src = ./.;
src = fs.toSource {
root = ./.;
fileset = fs.unions [
./pyproject.toml
./test_driver
./extract-docstrings.py
];
};
pyproject = true;
propagatedBuildInputs = [