python3Packages.gpapi: refactor and modernize
This commit is contained in:
parent
83cdd624e4
commit
59ec08c4fb
@ -7,16 +7,17 @@
|
|||||||
pycryptodome,
|
pycryptodome,
|
||||||
requests,
|
requests,
|
||||||
protobuf_27,
|
protobuf_27,
|
||||||
|
setuptools,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "0.4.4";
|
version = "0.4.4";
|
||||||
format = "setuptools";
|
|
||||||
pname = "gpapi";
|
pname = "gpapi";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit version pname;
|
inherit version pname;
|
||||||
sha256 = "0ampvsv97r3hy1cakif4kmyk1ynf3scbvh4fbk02x7xrxn4kl38w";
|
sha256 = "sha256-HA06ie25ny7AXI7AvZgezvowfZ3ExalY8HDkk7betyo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -24,30 +25,32 @@ buildPythonPackage rec {
|
|||||||
--replace-fail 'PROTOC_EXEC = "protoc"' 'PROTOC_EXEC = "${lib.getExe protobuf_27}"'
|
--replace-fail 'PROTOC_EXEC = "protoc"' 'PROTOC_EXEC = "${lib.getExe protobuf_27}"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
protobuf_27
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
cryptography
|
||||||
|
protobuf
|
||||||
|
pycryptodome
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="python"
|
||||||
|
'';
|
||||||
|
|
||||||
# package doesn't contain unit tests
|
# package doesn't contain unit tests
|
||||||
# scripts in ./test require networking
|
# scripts in ./test require networking
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [ "gpapi.googleplay" ];
|
pythonImportsCheck = [ "gpapi.googleplay" ];
|
||||||
|
|
||||||
preBuild = ''
|
meta = {
|
||||||
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="python"
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
protobuf_27
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
cryptography
|
|
||||||
protobuf
|
|
||||||
pycryptodome
|
|
||||||
requests
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = "https://github.com/NoMore201/googleplay-api";
|
homepage = "https://github.com/NoMore201/googleplay-api";
|
||||||
license = licenses.gpl3Only;
|
license = lib.licenses.gpl3Only;
|
||||||
description = "Google Play Unofficial Python API";
|
description = "Google Play Unofficial Python API";
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user