Commit 81e35c13 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python312Packages.cirq-rigetti: fix build

parent ffc42485
Loading
Loading
Loading
Loading
+2 −17
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  cirq-core,
  fetchpatch2,
  setuptools,
  pyquil,
  pytestCheckHook,
  pythonOlder,
  qcs-sdk-python,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
@@ -15,18 +12,6 @@ buildPythonPackage rec {
  pyproject = true;
  inherit (cirq-core) version src;

  disabled = pythonOlder "3.10";

  patches = [
    # https://github.com/quantumlib/Cirq/pull/6734
    (fetchpatch2 {
      name = "fix-rigetti-check-for-aspen-family-device-kind.patch";
      url = "https://github.com/quantumlib/Cirq/commit/dd395fb71fb7f92cfd34f008bf2a98fc70b57fae.patch";
      stripLen = 1;
      hash = "sha256-EWB2CfMS2+M3zNFX5PwFNtEBdgJkNVUVNd+I/E6n9kI=";
    })
  ];

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

  pythonRelaxDeps = [ "pyquil" ];