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