Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 42 lines 812 B view raw
1{ 2 buildPythonPackage, 3 cirq-core, 4 requests, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "cirq-ionq"; 11 pyproject = true; 12 inherit (cirq-core) version src meta; 13 14 sourceRoot = "${src.name}/${pname}"; 15 16 postPatch = '' 17 substituteInPlace requirements.txt \ 18 --replace-fail "requests~=2.18" "requests" 19 ''; 20 21 build-system = [ setuptools ]; 22 23 dependencies = [ 24 cirq-core 25 requests 26 ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 # cirq's importlib hook doesn't work here 31 #pythonImportsCheck = [ "cirq_ionq" ]; 32 33 disabledTestPaths = [ 34 # No need to test the version number 35 "cirq_ionq/_version_test.py" 36 ]; 37 38 disabledTests = [ 39 # DeprecationWarning: decompose_to_device was used but is deprecated. 40 "test_decompose_operation_deprecated" 41 ]; 42}