mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
25bef2d8f9
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
20 lines
507 B
Nix
20 lines
507 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "trezord";
|
|
meta = with pkgs.lib; {
|
|
maintainers = with maintainers; [ mmahut _1000101 ];
|
|
};
|
|
nodes = {
|
|
machine = { ... }: {
|
|
services.trezord.enable = true;
|
|
services.trezord.emulator.enable = true;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
machine.wait_for_unit("trezord.service")
|
|
machine.wait_for_open_port(21325)
|
|
machine.wait_until_succeeds("curl -fL http://localhost:21325/status/ | grep Version")
|
|
'';
|
|
})
|