keepalived add meta.mainProgram (#380296)
[NixPkgs.git] / pkgs / development / python-modules / mobly / default.nix
blob6868bac6fd8c139051d990cedb4331a18001dd0d
2   lib,
3   stdenv,
4   buildPythonPackage,
5   fetchFromGitHub,
7   # build-system
8   setuptools,
10   # dependencies
11   portpicker,
12   pyserial,
13   pyyaml,
14   timeout-decorator,
15   typing-extensions,
17   # tests
18   procps,
19   pytestCheckHook,
20   pytz,
23 buildPythonPackage rec {
24   pname = "mobly";
25   version = "1.12.4";
26   pyproject = true;
28   src = fetchFromGitHub {
29     owner = "google";
30     repo = "mobly";
31     tag = version;
32     hash = "sha256-77wZK5dqxXUkOgWE7NBpGJBbbtYYxRCJwPbtwLIX09I=";
33   };
35   build-system = [ setuptools ];
37   dependencies = [
38     portpicker
39     pyserial
40     pyyaml
41     timeout-decorator
42     typing-extensions
43   ];
45   nativeCheckInputs = [
46     procps
47     pytestCheckHook
48     pytz
49   ];
51   disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
52     # cannot access /usr/bin/pgrep from the sandbox
53     "test_stop_standing_subproc"
54     "test_stop_standing_subproc_and_descendants"
55     "test_stop_standing_subproc_without_pipe"
56   ];
58   __darwinAllowLocalNetworking = true;
60   meta = with lib; {
61     changelog = "https://github.com/google/mobly/blob/${src.rev}/CHANGELOG.md";
62     description = "Automation framework for special end-to-end test cases";
63     homepage = "https://github.com/google/mobly";
64     license = licenses.asl20;
65     maintainers = with maintainers; [ hexa ];
66   };