-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdefault.nix
49 lines (40 loc) · 993 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ pkgs ? import <nixpkgs> {} }:
pkgs.python3.pkgs.buildPythonPackage rec {
pname = "vmrunner";
version = "0.16.0";
src = ./.; # Use the current directory as the source
pyproject = true;
dontUseSetuptoolsCheck = true;
doCheck = true;
build-system = with pkgs.python3.pkgs; [
setuptools
setuptools-scm
];
dependencies = with pkgs.python3.pkgs; [
future
jsonschema
psutil
];
create_bridge = ./vmrunner/bin/create_bridge.sh;
passthru = {
inherit create_bridge;
};
meta = {
description = "A convenience wrapper around qemu for IncludeOS integration tests";
license = pkgs.lib.licenses.asl20;
};
nativeCheckInputs = [
pkgs.shellcheck
pkgs.pylint
];
checkPhase = ''
for f in vmrunner/bin/{*.sh,qemu-ifup,qemu-ifdown}; do
echo Checking "$f" with shellcheck
shellcheck "$f"
done
for f in vmrunner/*.py; do
echo Checking $f with pylint
pylint --persistent no "$f"
done
'';
}