3e2acf8aff
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
29 lines
489 B
Nix
29 lines
489 B
Nix
{ 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 = ''
|
|
substituteInPlace requirements.txt --replace "protobuf~=3.13.0" "protobuf"
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
cirq-core
|
|
google-api-core
|
|
protobuf
|
|
];
|
|
|
|
checkInputs = [ pytestCheckHook freezegun ];
|
|
}
|