1{ lib
2, args
3, buildPythonPackage
4, clint
5, fetchFromGitHub
6, libffi
7, matlink-gpapi
8, ndg-httpsclient
9, protobuf
10, pyasn1
11, pyaxmlparser
12, pytestCheckHook
13, pythonOlder
14, requests
15, setuptools
16}:
17
18buildPythonPackage rec {
19 pname = "gplaycli";
20 version = "3.29";
21 format = "setuptools";
22
23 disabled = pythonOlder "3.6";
24
25 src = fetchFromGitHub {
26 owner = "matlink";
27 repo = "gplaycli";
28 rev = "refs/tags/${version}";
29 hash = "sha256-uZBrIxnDSaJDOPcD7J4SCPr9nvecDDR9h+WnIjIP7IE=";
30 };
31
32 propagatedBuildInputs = [
33 libffi
34 pyasn1
35 clint
36 ndg-httpsclient
37 protobuf
38 requests
39 args
40 matlink-gpapi
41 pyaxmlparser
42 setuptools
43 ];
44
45 nativeCheckInputs = [
46 pytestCheckHook
47 ];
48
49 pythonImportsCheck = [
50 "gplaycli"
51 ];
52
53 preCheck = ''
54 export PATH="$PATH:$out/bin";
55 '';
56
57 disabledTests = [
58 "test_alter_token"
59 "test_another_device"
60 "test_connection_credentials"
61 "test_connection_token"
62 "test_download_additional_files"
63 "test_download_focus"
64 "test_download_version"
65 "test_download"
66 "test_search"
67 "test_update"
68 ];
69
70 meta = with lib; {
71 description = "Google Play Downloader via Command line";
72 homepage = "https://github.com/matlink/gplaycli";
73 changelog = "https://github.com/matlink/gplaycli/releases/tag/${version}";
74 license = licenses.agpl3Plus;
75 maintainers = with maintainers; [ ];
76 };
77}