python311Packages.qcs-sdk-python: init at 0.16.3
This commit is contained in:
parent
42ed907474
commit
51124dd283
4053
pkgs/development/python-modules/qcs-sdk-python/Cargo.lock
generated
Normal file
4053
pkgs/development/python-modules/qcs-sdk-python/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
67
pkgs/development/python-modules/qcs-sdk-python/default.nix
Normal file
67
pkgs/development/python-modules/qcs-sdk-python/default.nix
Normal file
@ -0,0 +1,67 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, quil
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, syrupy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "qcs-sdk-python";
|
||||
version = "0.16.3";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rigetti";
|
||||
repo = "qcs-sdk-rust";
|
||||
rev = "python/v${version}";
|
||||
hash = "sha256-Q2PCARxaWqgVVnr2O+zhGcNHghC4gr31bxkv6+Rf/EQ=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.importCargoLock {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"quil-rs-0.22.5" = "sha256-HUp41mOBjyAavhjFO5IJXHh2dVPcpFuDJ03nyRRuCCk=";
|
||||
};
|
||||
};
|
||||
|
||||
buildAndTestSubdir = "crates/python";
|
||||
|
||||
nativeBuildInputs = [
|
||||
rustPlatform.cargoSetupHook
|
||||
rustPlatform.maturinBuildHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
quil
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
syrupy
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
"test_compile_program"
|
||||
"test_conjugate_pauli_by_clifford"
|
||||
"test_execute_qvm"
|
||||
"test_generate_randomized_benchmark_sequence"
|
||||
"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";
|
||||
description = "Python interface for the QCS Rust SDK";
|
||||
homepage = "https://github.com/rigetti/qcs-sdk-rust/tree/main/crates/python";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
@ -12307,6 +12307,8 @@ self: super: with self; {
|
||||
|
||||
qcs-api-client = callPackage ../development/python-modules/qcs-api-client { };
|
||||
|
||||
qcs-sdk-python = callPackage ../development/python-modules/qcs-sdk-python { };
|
||||
|
||||
qdarkstyle = callPackage ../development/python-modules/qdarkstyle { };
|
||||
|
||||
qdldl = callPackage ../development/python-modules/qdldl { };
|
||||
|
Loading…
Reference in New Issue
Block a user