Unverified Commit 84efa417 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

python313Packages.qcs-sdk-python: 0.21.4 -> 0.21.12 (#384412)

parents 79c09b73 65981df5
Loading
Loading
Loading
Loading
+0 −3879

File deleted.

Preview size limit exceeded, changes collapsed.

+13 −17
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
  pytest-asyncio,
  pytest-mock,
  pytestCheckHook,
  pythonAtLeast,
  rustc,
  rustPlatform,
  syrupy,
@@ -16,36 +17,30 @@

buildPythonPackage rec {
  pname = "qcs-api-client-common";
  version = "0.10.2";
  version = "0.11.8";
  pyproject = true;

  # error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12)
  disabled = pythonAtLeast "3.13";

  src = fetchFromGitHub {
    owner = "rigetti";
    repo = "qcs-api-client-rust";
    tag = "common/v${version}";
    hash = "sha256-WXTqzdbBZmBj/+mVK/watOuaq/WqKtaMVhp+ogjmhqM=";
    hash = "sha256-IJaclIGuLWyTaVnnK1MblSZjIqjaMjLCFfY1CLn6Rao=";
  };

  cargoDeps = rustPlatform.importCargoLock {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "hyper-proxy-0.9.1" = "sha256-P9/qMHfq56rkQoBQF3o/SmbOfcePcFf8yh1YQve3oGM=";
    };
  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit pname version src;
    hash = "sha256-luLg4VR7Nwm6g1UYckKmN9iy1MvNezYh9g21ADMX/yU=";
  };

  # FIXME use
  #     buildAndTestSubdir = "qcs-api-client-common";
  # instead, which makes the tests fail
  postPatch = ''
    cd qcs-api-client-common
  '';
  cargoRoot = "..";

  build-system = [ rustPlatform.maturinBuildHook ];
  buildAndTestSubdir = "qcs-api-client-common";

  nativeBuildInputs = [
    cargo
    rustPlatform.cargoSetupHook
    rustPlatform.maturinBuildHook
    rustc
  ];

@@ -56,6 +51,7 @@ buildPythonPackage rec {
  ];

  preCheck = ''
    cd ${buildAndTestSubdir}
    # import from $out
    rm -r qcs_api_client_common
  '';
@@ -68,7 +64,7 @@ buildPythonPackage rec {
  ];

  meta = {
    changelog = "https://github.com/rigetti/qcs-api-client-rust/blob/${src.rev}/qcs-api-client-common/CHANGELOG-py.md";
    changelog = "https://github.com/rigetti/qcs-api-client-rust/blob/${src.tag}/qcs-api-client-common/CHANGELOG-py.md";
    description = "Contains core QCS client functionality and middleware implementations";
    homepage = "https://github.com/rigetti/qcs-api-client-rust/tree/main/qcs-api-client-common";
    license = lib.licenses.asl20;
+7 −8
Original line number Diff line number Diff line
@@ -18,26 +18,24 @@

buildPythonPackage rec {
  pname = "qcs-sdk-python";
  version = "0.21.4";
  version = "0.21.12";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "rigetti";
    repo = "qcs-sdk-rust";
    rev = "python/v${version}";
    hash = "sha256-PIU/JPf4GcTl0LeT+BkzZTRzKUQT2BvNzBWP9+/RCKM=";
    tag = "python/v${version}";
    hash = "sha256-5tabdxMvYW0g2k48MTAm15+o/OI7yFyL19xirUBN7D4=";
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit pname version src;
    hash = "sha256-j2qEjmmeUy+nqOrklGXW/tsGqNAs2SxuvVPW2ywXlsA=";
    hash = "sha256-YOBI0q7OsjFhoQUO2K4Q3CprcxHgJbTmg+klXj41p0o=";
  };

  buildAndTestSubdir = "crates/python";

  build-system = [
  nativeBuildInputs = [
    rustPlatform.cargoSetupHook
    rustPlatform.maturinBuildHook
  ];
@@ -69,13 +67,14 @@ buildPythonPackage rec {
    "test_conjugate_pauli_by_clifford"
    "test_execute_qvm"
    "test_generate_randomized_benchmark_sequence"
    "test_get_instruction_set_actitecture_public"
    "test_get_report"
    "test_get_version_info"
    "test_list_quantum_processors_timeout"
  ];

  meta = {
    changelog = "https://github.com/rigetti/qcs-sdk-rust/blob/${src.rev}/crates/python/CHANGELOG.md";
    changelog = "https://github.com/rigetti/qcs-sdk-rust/blob/${src.tag}/crates/python/CHANGELOG.md";
    description = "Python interface for the QCS Rust SDK";
    homepage = "https://github.com/rigetti/qcs-sdk-rust/tree/main/crates/python";
    license = lib.licenses.asl20;
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ buildPythonPackage rec {

  buildAndTestSubdir = "quil-py";

  build-system = [
  nativeBuildInputs = [
    rustPlatform.cargoSetupHook
    rustPlatform.maturinBuildHook
  ];
@@ -51,7 +51,7 @@ buildPythonPackage rec {
  ];

  meta = {
    changelog = "https://github.com/rigetti/quil-rs/blob/quil-py/v${version}/quil-py/CHANGELOG.md";
    changelog = "https://github.com/rigetti/quil-rs/blob/${src.tag}/quil-py/CHANGELOG.md";
    description = "Python package for building and parsing Quil programs";
    homepage = "https://github.com/rigetti/quil-rs/tree/main/quil-py";
    license = lib.licenses.asl20;