Unverified Commit 81905444 authored by Tom Hunze's avatar Tom Hunze
Browse files

python314Packages.cirq-core: fix build

parent 0da8f338
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,

  # build-system
  setuptools,
@@ -49,6 +50,17 @@ buildPythonPackage rec {

  sourceRoot = "${src.name}/${pname}";

  patches = [
    # Upstream PR: https://github.com/quantumlib/Cirq/pull/7761
    (fetchpatch {
      name = "python-3.14.patch";
      url = "https://github.com/quantumlib/Cirq/commit/9aea3bad824cac77031c163d6d6f5cf3e01cfe80.patch";
      stripLen = 1;
      includes = [ "cirq/ops/linear_combinations_test.py" ];
      hash = "sha256-Ggcaswrdx6mOfNOwlbWE2ix7aZWt3/Fljb4i1ow+lUU=";
    })
  ];

  pythonRelaxDeps = [ "matplotlib" ];

  build-system = [ setuptools ];