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"
95 "test_parameterized_cphase"
97 ++ lib.optionals stdenv.hostPlatform.isAarch64 [
98 # https://github.com/quantumlib/Cirq/issues/5924
99 "test_prepare_two_qubit_state_using_sqrt_iswap"
103 description = "Framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits";
104 homepage = "https://github.com/quantumlib/cirq";
105 changelog = "https://github.com/quantumlib/Cirq/releases/tag/v${version}";
106 license = licenses.asl20;
107 maintainers = with maintainers; [