2021-12-06 16:07:01 +00:00
|
|
|
{ buildPythonPackage
|
2021-10-28 06:52:43 +00:00
|
|
|
, cirq-core
|
|
|
|
, requests
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cirq-aqt";
|
|
|
|
inherit (cirq-core) version src meta;
|
|
|
|
|
|
|
|
sourceRoot = "source/${pname}";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "requests~=2.18" "requests"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cirq-core
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# cirq's importlib hook doesn't work here
|
|
|
|
#pythonImportsCheck = [ "cirq_aqt" ];
|
|
|
|
}
|