mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
32964dd23d
I have read the full diff[0] between the previous owner and the new maintained fork that I'm switching to, and could not find any suspicious code. The new fork includes fixes that are otherwise crashing as of Python 3.10. This commit also fixes the PYTHONPATH which prevents the client from starting. This commit also adds a test that the client can successfully query the server, testing the two components at once. [0] https://github.com/SystemRage/py-kms/compare/master...Py-KMS-Organization:master
15 lines
361 B
Nix
15 lines
361 B
Nix
import ./make-test-python.nix ({ pkgs, ... }:
|
|
{
|
|
name = "pykms-test";
|
|
meta.maintainers = with pkgs.lib.maintainers; [ zopieux ];
|
|
|
|
nodes.machine = { config, lib, pkgs, ... }: {
|
|
services.pykms.enable = true;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("pykms.service")
|
|
machine.succeed("${pkgs.pykms}/bin/client")
|
|
'';
|
|
})
|