29 withContribRequires ? false,
32 buildPythonPackage rec {
37 disabled = pythonOlder "3.10";
39 src = fetchFromGitHub {
42 rev = "refs/tags/v${version}";
43 hash = "sha256-1GcRDVgYF+1igZQFlQbiWZmU1WNIJh4CcOftQe6OP6I=";
46 sourceRoot = "${src.name}/${pname}";
49 substituteInPlace requirements.txt \
50 --replace-fail "matplotlib~=3.0" "matplotlib"
53 build-system = [ setuptools ];
70 ++ lib.optionals withContribRequires [
85 disabledTestPaths = lib.optionals (!withContribRequires) [
86 # Requires external (unpackaged) libraries, so untested
88 # No need to test the version number
89 "cirq/_version_test.py"
92 disabledTests = lib.optionals stdenv.hostPlatform.isAarch64 [
93 # https://github.com/quantumlib/Cirq/issues/5924
94 "test_prepare_two_qubit_state_using_sqrt_iswap"
98 description = "Framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits";
99 homepage = "https://github.com/quantumlib/cirq";
100 changelog = "https://github.com/quantumlib/Cirq/releases/tag/v${version}";
101 license = licenses.asl20;
102 maintainers = with maintainers; [