2021-05-20 23:08:51 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, protobuf
|
|
|
|
, pycryptodome
|
2021-05-20 23:08:51 +00:00
|
|
|
, requests
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.4.4";
|
|
|
|
pname = "gpapi";
|
|
|
|
disabled = pythonOlder "3.3"; # uses shutil.which(), added in 3.3
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
|
|
|
sha256 = "0ampvsv97r3hy1cakif4kmyk1ynf3scbvh4fbk02x7xrxn4kl38w";
|
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
# package doesn't contain unit tests
|
|
|
|
# scripts in ./test require networking
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "gpapi.googleplay" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cryptography protobuf pycryptodome requests ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/NoMore201/googleplay-api";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Google Play Unofficial Python API";
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|