1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4
5# runtime
6, portpicker
7, pyserial
8, pyyaml
9, timeout-decorator
10, typing-extensions
11
12# tests
13, procps
14, pytestCheckHook
15, pytz
16}:
17
18buildPythonPackage rec {
19 pname = "mobly";
20 version = "1.12.2";
21 format = "setuptools";
22
23 src = fetchFromGitHub {
24 owner = "google";
25 repo = "mobly";
26 rev = "refs/tags/${version}";
27 hash = "sha256-leUOC8AQwbuPNphDg4bIFWW+9tTnYvM3/ejHgZDMR44=";
28 };
29
30 propagatedBuildInputs = [
31 portpicker
32 pyserial
33 pyyaml
34 timeout-decorator
35 typing-extensions
36 ];
37
38 nativeCheckInputs = [
39 procps
40 pytestCheckHook
41 pytz
42 ];
43
44 __darwinAllowLocalNetworking = true;
45
46 meta = with lib; {
47 changelog = "https://github.com/google/mobly/blob/${src.rev}/CHANGELOG.md";
48 description = "Automation framework for special end-to-end test cases";
49 homepage = "https://github.com/google/mobly";
50 license = licenses.asl20;
51 maintainers = with maintainers; [ hexa ];
52 };
53}