From dacf3c8aa1c5cfcdc79fb35a508bf96ddec03e3b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 18 Sep 2021 23:10:05 +0200 Subject: [PATCH] python3Packages.cirq-aqt: init at 0.12.0 --- .../python-modules/cirq-aqt/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/cirq-aqt/default.nix diff --git a/pkgs/development/python-modules/cirq-aqt/default.nix b/pkgs/development/python-modules/cirq-aqt/default.nix new file mode 100644 index 000000000000..1dff0a121ffd --- /dev/null +++ b/pkgs/development/python-modules/cirq-aqt/default.nix @@ -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" ]; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1235e8e2cf2f..2f446e999e94 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };