python3Packages.gpapi: Fix build
This commit is contained in:
parent
c53bacfb59
commit
83cdd624e4
@ -6,6 +6,7 @@
|
||||
protobuf,
|
||||
pycryptodome,
|
||||
requests,
|
||||
protobuf_27,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -18,12 +19,25 @@ buildPythonPackage rec {
|
||||
sha256 = "0ampvsv97r3hy1cakif4kmyk1ynf3scbvh4fbk02x7xrxn4kl38w";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail 'PROTOC_EXEC = "protoc"' 'PROTOC_EXEC = "${lib.getExe protobuf_27}"'
|
||||
'';
|
||||
|
||||
# package doesn't contain unit tests
|
||||
# scripts in ./test require networking
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "gpapi.googleplay" ];
|
||||
|
||||
preBuild = ''
|
||||
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="python"
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
protobuf_27
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
protobuf
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user