2021-01-05 17:05:55 +00:00
|
|
|
import ../make-test-python.nix ({ pkgs, ...} : {
|
|
|
|
name = "hub";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2021-01-05 17:05:55 +00:00
|
|
|
maintainers = [ nequissimus ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes.hub = { pkgs, ... }:
|
|
|
|
{
|
2021-01-15 22:18:51 +00:00
|
|
|
environment.systemPackages = [ pkgs.hub ];
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
2021-01-15 22:18:51 +00:00
|
|
|
assert "git version ${pkgs.git.version}\nhub version ${pkgs.hub.version}\n" in hub.succeed("hub version")
|
2021-01-05 17:05:55 +00:00
|
|
|
assert "These GitHub commands are provided by hub" in hub.succeed("hub help")
|
|
|
|
'';
|
|
|
|
})
|