Robert Schütz
2025-02-23 09:38:26 -08:00
parent fb2551a277
commit 93d894be62
2 changed files with 13 additions and 3896 deletions
File diff suppressed because it is too large Load Diff
@@ -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;