2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, cirq-core
|
|
|
|
, google-api-core
|
|
|
|
, protobuf
|
|
|
|
# test inputs
|
|
|
|
, pytestCheckHook
|
|
|
|
, freezegun
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cirq-google";
|
|
|
|
inherit (cirq-core) version src meta;
|
|
|
|
|
|
|
|
sourceRoot = "source/${pname}";
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-08-27 14:25:00 +00:00
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "protobuf~=3.13.0" "protobuf" \
|
|
|
|
--replace "google-api-core[grpc] >= 1.14.0, < 2.0.0dev" "google-api-core[grpc] >= 1.14.0, < 3.0.0dev"
|
2021-05-20 23:08:51 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cirq-core
|
|
|
|
google-api-core
|
|
|
|
protobuf
|
|
|
|
];
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
checkInputs = [
|
|
|
|
freezegun
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
}
|