17 # Contrib requirements
18 , withContribRequires ? false
31 buildPythonPackage rec {
34 format = "setuptools";
36 disabled = pythonOlder "3.9";
38 src = fetchFromGitHub {
41 rev = "refs/tags/v${version}";
42 hash = "sha256-JAJJciFg3BuRha1wTKixtKWcYy3NA2mNpniPyPHTTe8=";
45 sourceRoot = "${src.name}/${pname}";
48 substituteInPlace requirements.txt \
49 --replace "matplotlib~=3.0" "matplotlib"
52 propagatedBuildInputs = [
64 ] ++ lib.optionals withContribRequires [
79 disabledTestPaths = lib.optionals (!withContribRequires) [
80 # Requires external (unpackaged) libraries, so untested
82 # No need to test the version number
83 "cirq/_version_test.py"
86 disabledTests = lib.optionals stdenv.isAarch64 [
87 # https://github.com/quantumlib/Cirq/issues/5924
88 "test_prepare_two_qubit_state_using_sqrt_iswap"
92 description = "Framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits";
93 homepage = "https://github.com/quantumlib/cirq";
94 changelog = "https://github.com/quantumlib/Cirq/releases/tag/v${version}";
95 license = licenses.asl20;
96 maintainers = with maintainers; [ drewrisinger fab ];