diff --git a/pkgs/development/python-modules/gplaycli/default.nix b/pkgs/development/python-modules/gplaycli/default.nix index 7ac5cca1ebd5..11ff2d6fc1e6 100644 --- a/pkgs/development/python-modules/gplaycli/default.nix +++ b/pkgs/development/python-modules/gplaycli/default.nix @@ -1,21 +1,21 @@ { buildPythonPackage, lib, libffi, isPy3k, pyasn1, clint, ndg-httpsclient -, protobuf, requests, args, gpapi, pyaxmlparser, setuptools, fetchFromGitHub +, protobuf, requests, args, matlink-gpapi, pyaxmlparser, setuptools, fetchFromGitHub }: buildPythonPackage rec { pname = "gplaycli"; - version = "3.26"; + version = "3.29"; src = fetchFromGitHub { owner = "matlink"; repo = "gplaycli"; rev = version; - sha256 = "188237d40q35dp5xs7hg4ybhvsyxi0bsqx5dk4ws9007n596in5f"; + sha256 = "10gc1wr259z5hxyk834wyyggvyh82agfq0zp711s4jf334inp45r"; }; disabled = !isPy3k; - propagatedBuildInputs = [ libffi pyasn1 clint ndg-httpsclient protobuf requests args gpapi pyaxmlparser setuptools ]; + propagatedBuildInputs = [ libffi pyasn1 clint ndg-httpsclient protobuf requests args matlink-gpapi pyaxmlparser setuptools ]; meta = with lib; { homepage = "https://github.com/matlink/gplaycli"; diff --git a/pkgs/development/python-modules/matlink-gpapi/default.nix b/pkgs/development/python-modules/matlink-gpapi/default.nix new file mode 100644 index 000000000000..1f8533748965 --- /dev/null +++ b/pkgs/development/python-modules/matlink-gpapi/default.nix @@ -0,0 +1,35 @@ +{ buildPythonPackage +, cryptography +, fetchPypi +, lib +, pythonOlder +, protobuf +, pycryptodome +, requests +}: + +buildPythonPackage rec { + version = "0.4.4.5"; + pname = "matlink-gpapi"; + disabled = pythonOlder "3.3"; # uses shutil.which(), added in 3.3 + + src = fetchPypi { + inherit version pname; + sha256 = "0s45yb2xiq3pc1fh4bygfgly0fsjk5fkc4wckbckn3ddl7v7vz8c"; + }; + + # package doesn't contain unit tests + # scripts in ./test require networking + doCheck = false; + + pythonImportsCheck = [ "gpapi.googleplay" ]; + + propagatedBuildInputs = [ cryptography protobuf pycryptodome requests ]; + + meta = with lib; { + homepage = "https://github.com/NoMore201/googleplay-api"; + license = licenses.gpl3Only; + description = "Google Play Unofficial Python API"; + maintainers = with maintainers; [ schnusch ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ed9b6739da60..98f72a8a7663 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4781,6 +4781,8 @@ in { mathlibtools = callPackage ../development/python-modules/mathlibtools { }; + matlink-gpapi = callPackage ../development/python-modules/matlink-gpapi { }; + matplotlib = callPackage ../development/python-modules/matplotlib { stdenv = if stdenv.isDarwin then pkgs.clangStdenv else pkgs.stdenv; inherit (pkgs.darwin.apple_sdk.frameworks) Cocoa;