1{ buildPythonPackage
2, cirq-core
3, google-api-core
4, protobuf
5# test inputs
6, pytestCheckHook
7, freezegun
8}:
9
10buildPythonPackage rec {
11 pname = "cirq-google";
12 inherit (cirq-core) version src meta;
13
14 sourceRoot = "source/${pname}";
15
16 postPatch = ''
17 substituteInPlace requirements.txt \
18 --replace "protobuf~=3.13.0" "protobuf" \
19 --replace "google-api-core[grpc] >= 1.14.0, < 2.0.0dev" "google-api-core[grpc] >= 1.14.0, < 3.0.0dev"
20 '';
21
22 propagatedBuildInputs = [
23 cirq-core
24 google-api-core
25 protobuf
26 ];
27
28 checkInputs = [
29 freezegun
30 pytestCheckHook
31 ];
32}