lol

python3Packages.gpapi: Fix build

+14
+14
pkgs/development/python-modules/gpapi/default.nix
··· 6 6 protobuf, 7 7 pycryptodome, 8 8 requests, 9 + protobuf_27, 9 10 }: 10 11 11 12 buildPythonPackage rec { ··· 18 19 sha256 = "0ampvsv97r3hy1cakif4kmyk1ynf3scbvh4fbk02x7xrxn4kl38w"; 19 20 }; 20 21 22 + postPatch = '' 23 + substituteInPlace setup.py \ 24 + --replace-fail 'PROTOC_EXEC = "protoc"' 'PROTOC_EXEC = "${lib.getExe protobuf_27}"' 25 + ''; 26 + 21 27 # package doesn't contain unit tests 22 28 # scripts in ./test require networking 23 29 doCheck = false; 24 30 25 31 pythonImportsCheck = [ "gpapi.googleplay" ]; 32 + 33 + preBuild = '' 34 + export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="python" 35 + ''; 36 + 37 + buildInputs = [ 38 + protobuf_27 39 + ]; 26 40 27 41 propagatedBuildInputs = [ 28 42 cryptography