mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 09:36:20 +09:00
nixos/test-driver: avoid lib.fileset
This commit is contained in:
parent
2eae7d63e2
commit
f6ce575a03
12 changed files with 2 additions and 12 deletions
|
@ -14,22 +14,12 @@
|
|||
extraPythonPackages ? (_: [ ]),
|
||||
nixosTests,
|
||||
}:
|
||||
let
|
||||
fs = lib.fileset;
|
||||
in
|
||||
python3Packages.buildPythonApplication {
|
||||
pname = "nixos-test-driver";
|
||||
version = "1.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fs.toSource {
|
||||
root = ./.;
|
||||
fileset = fs.unions [
|
||||
./pyproject.toml
|
||||
./test_driver
|
||||
./extract-docstrings.py
|
||||
];
|
||||
};
|
||||
src = ./src;
|
||||
|
||||
build-system = with python3Packages; [
|
||||
setuptools
|
||||
|
|
|
@ -11,6 +11,6 @@ in
|
|||
|
||||
runCommand "nixos-test-driver-docstrings" env ''
|
||||
mkdir $out
|
||||
python3 ${./extract-docstrings.py} ${./test_driver/machine.py} \
|
||||
python3 ${./src/extract-docstrings.py} ${./src/test_driver/machine.py} \
|
||||
> $out/machine-methods.md
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue