Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 39 lines 773 B view raw
1{ 2 buildPythonPackage, 3 cirq-core, 4 requests, 5 pytestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "cirq-ionq"; 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_ionq" ]; 29 30 disabledTestPaths = [ 31 # No need to test the version number 32 "cirq_ionq/_version_test.py" 33 ]; 34 35 disabledTests = [ 36 # DeprecationWarning: decompose_to_device was used but is deprecated. 37 "test_decompose_operation_deprecated" 38 ]; 39}