Unverified Commit 3e9a4bda authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.cirq-*: refactor (#343807)

parents 9eb05103 5e1c6815
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -3,21 +3,24 @@
  cirq-core,
  requests,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "cirq-aqt";
  format = "setuptools";
  pyproject = true;
  inherit (cirq-core) version src meta;

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

  postPatch = ''
    substituteInPlace requirements.txt \
      --replace "requests~=2.18" "requests"
      --replace-fail "requests~=2.18" "requests"
  '';

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    cirq-core
    requests
  ];
+2 −2
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ buildPythonPackage rec {
  version = "1.4.1";
  pyproject = true;

  disabled = pythonOlder "3.9";
  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "quantumlib";
@@ -47,7 +47,7 @@ buildPythonPackage rec {

  postPatch = ''
    substituteInPlace requirements.txt \
      --replace "matplotlib~=3.0" "matplotlib"
      --replace-fail "matplotlib~=3.0" "matplotlib"
  '';

  build-system = [ setuptools ];
+2 −4
Original line number Diff line number Diff line
@@ -15,11 +15,9 @@ buildPythonPackage rec {

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

  nativeBuildInputs = [
    setuptools
  ];
  build-system = [ setuptools ];

  propagatedBuildInputs = [
  dependencies = [
    cirq-core
    google-api-core
    protobuf
+6 −3
Original line number Diff line number Diff line
@@ -3,21 +3,24 @@
  cirq-core,
  requests,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "cirq-ionq";
  format = "setuptools";
  pyproject = true;
  inherit (cirq-core) version src meta;

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

  postPatch = ''
    substituteInPlace requirements.txt \
      --replace "requests~=2.18" "requests"
      --replace-fail "requests~=2.18" "requests"
  '';

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    cirq-core
    requests
  ];
+6 −3
Original line number Diff line number Diff line
@@ -3,21 +3,24 @@
  cirq-core,
  requests,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "cirq-pasqal";
  format = "setuptools";
  pyproject = true;
  inherit (cirq-core) version src meta;

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

  postPatch = ''
    substituteInPlace requirements.txt \
      --replace "requests~=2.18" "requests"
      --replace-fail "requests~=2.18" "requests"
  '';

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    cirq-core
    requests
  ];
Loading