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