1{
2 buildPythonPackage,
3 cirq-core,
4 requests,
5 pytestCheckHook,
6}:
7
8buildPythonPackage rec {
9 pname = "cirq-aqt";
10 format = "setuptools";
11 inherit (cirq-core) version src meta;
12
13 sourceRoot = "${src.name}/${pname}";
14
15 postPatch = ''
16 substituteInPlace requirements.txt \
17 --replace "requests~=2.18" "requests"
18 '';
19
20 propagatedBuildInputs = [
21 cirq-core
22 requests
23 ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 # cirq's importlib hook doesn't work here
28 #pythonImportsCheck = [ "cirq_aqt" ];
29
30 disabledTestPaths = [
31 # No need to test the version number
32 "cirq_aqt/_version_test.py"
33 ];
34}