1{ buildPythonPackage
2, cryptography
3, fetchPypi
4, lib
5, pythonOlder
6, protobuf
7, pycryptodome
8, requests
9}:
10
11buildPythonPackage rec {
12 version = "0.4.4";
13 pname = "gpapi";
14 disabled = pythonOlder "3.3"; # uses shutil.which(), added in 3.3
15
16 src = fetchPypi {
17 inherit version pname;
18 sha256 = "0ampvsv97r3hy1cakif4kmyk1ynf3scbvh4fbk02x7xrxn4kl38w";
19 };
20
21 # package doesn't contain unit tests
22 # scripts in ./test require networking
23 doCheck = false;
24
25 pythonImportsCheck = [ "gpapi.googleplay" ];
26
27 propagatedBuildInputs = [ cryptography protobuf pycryptodome requests ];
28
29 meta = with lib; {
30 homepage = "https://github.com/NoMore201/googleplay-api";
31 license = licenses.gpl3Only;
32 description = "Google Play Unofficial Python API";
33 maintainers = with maintainers; [ ];
34 };
35}