2021-05-09 13:23:01 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, pythonOlder
|
2019-12-03 18:17:33 +00:00
|
|
|
, protobuf
|
|
|
|
, pycryptodome
|
2021-05-09 13:23:01 +01:00
|
|
|
, requests
|
2019-12-03 18:17:33 +00:00
|
|
|
}:
|
2018-03-10 23:09:11 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-12-03 13:39:49 +00:00
|
|
|
version = "0.4.4";
|
2018-03-10 23:09:11 +00:00
|
|
|
pname = "gpapi";
|
2019-12-03 18:17:33 +00:00
|
|
|
disabled = pythonOlder "3.3"; # uses shutil.which(), added in 3.3
|
2018-03-10 23:09:11 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2019-12-03 13:39:49 +00:00
|
|
|
sha256 = "0ampvsv97r3hy1cakif4kmyk1ynf3scbvh4fbk02x7xrxn4kl38w";
|
2018-03-10 23:09:11 +00:00
|
|
|
};
|
|
|
|
|
2021-05-14 05:42:06 +01:00
|
|
|
# package doesn't contain unit tests
|
|
|
|
# scripts in ./test require networking
|
2021-05-09 13:23:01 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "gpapi.googleplay" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cryptography protobuf pycryptodome requests ];
|
2018-03-10 23:09:11 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/NoMore201/googleplay-api";
|
2021-05-09 13:23:01 +01:00
|
|
|
license = licenses.gpl3Only;
|
2018-03-10 23:09:11 +00:00
|
|
|
description = "Google Play Unofficial Python API";
|
2019-12-26 14:13:48 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-03-10 23:09:11 +00:00
|
|
|
};
|
|
|
|
}
|