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" ];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# No need to test the version number
|
|
|
|
"cirq_aqt/_version_test.py"
|
|
|
|
];
|
2021-10-28 06:52:43 +00:00
|
|
|
}
|