Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pythonPackages.gplaycli: 0.1.2 -> 3.21

Fix the broken package: https://hydra.nixos.org/build/70687256/log

The newer version requires two new dependencies that have been added as
well:

- gpapi (Unofficial Python API for Google Play) at version 0.4.2
- pyaxmlparser (Parser for Android's XML handler) at version 0.3.7

See ticket #36453
See https://hydra.nixos.org/build/70687256/log

(cherry picked from commit 4feaaa7f0669bbe2b6442670d8afc5ebe36d4b4b)

authored by Maximilian Bosch and committed by Franz Pletz c8adc903 5ceb25c2

+70 -27
+20
pkgs/development/python-modules/gpapi/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi, requests, protobuf, pycryptodome }: 2 + 3 + buildPythonPackage rec { 4 + version = "0.4.2"; 5 + pname = "gpapi"; 6 + 7 + src = fetchPypi { 8 + inherit version pname; 9 + sha256 = "1fv2y3xbwn512fjxrdwgq6cz0xjd7mh54nq1f18wyz8w40vcznns"; 10 + }; 11 + 12 + propagatedBuildInputs = [ requests protobuf pycryptodome ]; 13 + 14 + meta = with stdenv.lib; { 15 + homepage = https://github.com/NoMore201/googleplay-api; 16 + license = licenses.gpl3; 17 + description = "Google Play Unofficial Python API"; 18 + maintainers = with maintainers; [ ma27 ]; 19 + }; 20 + }
+26
pkgs/development/python-modules/gplaycli/default.nix
··· 1 + { buildPythonPackage, stdenv, libffi, isPy3k, pyasn1, clint, ndg-httpsclient 2 + , protobuf, requests, args, gpapi, pyaxmlparser, fetchFromGitHub 3 + }: 4 + 5 + buildPythonPackage rec { 6 + version = "3.21"; 7 + name = "gplaycli-${version}"; 8 + 9 + src = fetchFromGitHub { 10 + owner = "matlink"; 11 + repo = "gplaycli"; 12 + rev = version; 13 + sha256 = "1r5nzi9yzswam0866gypjcvv3f1rw13jwx9s49chp8byxy1dyrs2"; 14 + }; 15 + 16 + disabled = !isPy3k; 17 + 18 + propagatedBuildInputs = [ libffi pyasn1 clint ndg-httpsclient protobuf requests args gpapi pyaxmlparser ]; 19 + 20 + meta = with stdenv.lib; { 21 + homepage = https://github.com/matlink/gplaycli; 22 + description = "Google Play Downloader via Command line"; 23 + license = licenses.agpl3Plus; 24 + maintainers = with maintainers; [ ma27 ]; 25 + }; 26 + }
+20
pkgs/development/python-modules/pyaxmlparser/default.nix
··· 1 + { buildPythonPackage, stdenv, lxml, click, fetchPypi }: 2 + 3 + buildPythonPackage rec { 4 + version = "0.3.7"; 5 + pname = "pyaxmlparser"; 6 + 7 + src = fetchPypi { 8 + inherit pname version; 9 + sha256 = "1spwr28sc6fc3cqdx2j2zq38qx889hixl4ahhf1nphpmrl39ypxr"; 10 + }; 11 + 12 + propagatedBuildInputs = [ lxml click ]; 13 + 14 + meta = with stdenv.lib; { 15 + description = "Python3 Parser for Android XML file and get Application Name without using Androguard"; 16 + homepage = https://github.com/appknox/pyaxmlparser; 17 + license = licenses.mit; 18 + maintainers = with maintainers; [ ma27 ]; 19 + }; 20 + }
+4 -27
pkgs/top-level/python-packages.nix
··· 303 303 304 304 pyatspi = disabledIf (!isPy3k) (callPackage ../development/python-modules/pyatspi { }); 305 305 306 + pyaxmlparser = callPackage ../development/python-modules/pyaxmlparser { }; 307 + 306 308 pycairo = callPackage ../development/python-modules/pycairo { }; 307 309 308 310 pycangjie = disabledIf (!isPy3k) (callPackage ../development/python-modules/pycangjie { }); ··· 4776 4778 4777 4779 google-compute-engine = callPackage ../tools/virtualization/google-compute-engine { }; 4778 4780 4779 - gplaycli = buildPythonPackage rec { 4780 - version = "0.1.2"; 4781 - name = "gplaycli-${version}"; 4782 - 4783 - src = pkgs.fetchFromGitHub { 4784 - owner = "matlink"; 4785 - repo = "gplaycli"; 4786 - rev = "${version}"; 4787 - sha256 = "0yc09inzs3aggj0gw4irlhlzw5q562fsp0sks352y6z0vx31hcp3"; 4788 - }; 4789 - 4790 - disabled = ! isPy27; 4791 - 4792 - propagatedBuildInputs = with self; [ pkgs.libffi pyasn1 clint ndg-httpsclient protobuf requests args ]; 4793 - 4794 - preBuild = '' 4795 - substituteInPlace setup.py --replace "/etc" "$out/etc" 4796 - substituteInPlace gplaycli/gplaycli.py --replace "/etc" "$out/etc" 4797 - ''; 4798 - 4799 - meta = { 4800 - homepage = https://github.com/matlink/gplaycli; 4801 - description = "Google Play Downloader via Command line"; 4802 - license = licenses.agpl3Plus; 4803 - maintainers = with maintainers; [ ]; 4804 - }; 4805 - }; 4781 + gpapi = callPackage ../development/python-modules/gpapi { }; 4782 + gplaycli = callPackage ../development/python-modules/gplaycli { }; 4806 4783 4807 4784 gpsoauth = buildPythonPackage rec { 4808 4785 version = "0.2.0";