2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
cryptography,
|
|
|
|
fetchPypi,
|
|
|
|
lib,
|
|
|
|
protobuf,
|
|
|
|
pycryptodome,
|
|
|
|
requests,
|
2024-10-29 11:11:06 +00:00
|
|
|
protobuf_27,
|
|
|
|
setuptools,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.4.4";
|
|
|
|
pname = "gpapi";
|
2024-10-29 11:11:06 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2024-10-29 11:11:06 +00:00
|
|
|
sha256 = "sha256-HA06ie25ny7AXI7AvZgezvowfZ3ExalY8HDkk7betyo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-29 11:11:06 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace-fail 'PROTOC_EXEC = "protoc"' 'PROTOC_EXEC = "${lib.getExe protobuf_27}"'
|
|
|
|
'';
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2024-10-29 11:11:06 +00:00
|
|
|
build-system = [ setuptools ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2024-10-29 11:11:06 +00:00
|
|
|
buildInputs = [
|
|
|
|
protobuf_27
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2024-06-05 15:53:02 +00:00
|
|
|
cryptography
|
|
|
|
protobuf
|
|
|
|
pycryptodome
|
|
|
|
requests
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-29 11:11:06 +00:00
|
|
|
preBuild = ''
|
|
|
|
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="python"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# package doesn't contain unit tests
|
|
|
|
# scripts in ./test require networking
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "gpapi.googleplay" ];
|
|
|
|
|
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/NoMore201/googleplay-api";
|
2024-10-29 11:11:06 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Google Play Unofficial Python API";
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|