python3Packages.cirq-aqt: init at 0.12.0

This commit is contained in:
Fabian Affolter 2021-09-18 23:10:05 +02:00
parent c8113cc857
commit dacf3c8aa1
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, cirq-core
, pythonOlder
, fetchFromGitHub
, 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" ];
}

View File

@ -1461,6 +1461,8 @@ in {
cirq = callPackage ../development/python-modules/cirq { };
cirq-aqt = callPackage ../development/python-modules/cirq-aqt { };
cirq-core = callPackage ../development/python-modules/cirq-core { };
cirq-ionq = callPackage ../development/python-modules/cirq-ionq { };