python3Packages.cirq-google: init at 0.11.0

This commit is contained in:
Drew Risinger
2021-05-19 18:43:25 -04:00
committed by Jonathan Ringer
parent 3b56b0d384
commit 1018fa91f6
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
{ 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 ];
}