Merge pull request #301754 from fabaff/qcs-api-client-bump

python312Packages.qcs-api-client: 0.23.1 -> 0.23.3
This commit is contained in:
Fabian Affolter 2024-04-07 22:39:46 +02:00 committed by GitHub
commit 890e4e907d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 701 additions and 580 deletions

View File

@ -1,36 +1,37 @@
{ lib
, buildPythonPackage
, deprecated
, fetchFromGitHub
, importlib-metadata
, ipython
, lark
, matplotlib-inline
, nest-asyncio
, networkx
, numpy
, packaging
, poetry-core
, pydantic
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, qcs-sdk-python
, respx
, rpcq
, scipy
, syrupy
, tenacity
, types-deprecated
, types-python-dateutil
, types-retry
{
lib,
buildPythonPackage,
deprecated,
fetchFromGitHub,
importlib-metadata,
ipython,
lark,
matplotlib-inline,
nest-asyncio,
networkx,
numpy,
packaging,
poetry-core,
pydantic,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
pythonOlder,
pythonRelaxDepsHook,
qcs-sdk-python,
respx,
rpcq,
scipy,
syrupy,
tenacity,
types-deprecated,
types-python-dateutil,
types-retry,
}:
buildPythonPackage rec {
pname = "pyquil";
version = "4.7.0";
version = "4.8.0";
pyproject = true;
disabled = pythonOlder "3.7";
@ -39,20 +40,21 @@ buildPythonPackage rec {
owner = "rigetti";
repo = "pyquil";
rev = "refs/tags/v${version}";
hash = "sha256-jzQv9XBJSxdpSWDEEPuHwYfIemelpmVKJUigpz6NWdo=";
hash = "sha256-MGI+R3oteqDWsXP+SlAGSRGiQiAj44YG6V7o90A4Krc=";
};
pythonRelaxDeps = [
"lark"
"networkx"
"packaging"
"qcs-sdk-python"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
build-system = [ poetry-core ];
propagatedBuildInputs = [
nativeBuildInputs = [ pythonRelaxDepsHook ];
dependencies = [
deprecated
lark
matplotlib-inline
@ -67,9 +69,7 @@ buildPythonPackage rec {
types-deprecated
types-python-dateutil
types-retry
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
nativeCheckInputs = [
nest-asyncio
@ -84,9 +84,7 @@ buildPythonPackage rec {
# tests hang
doCheck = false;
pythonImportsCheck = [
"pyquil"
];
pythonImportsCheck = [ "pyquil" ];
meta = with lib; {
description = "Python library for creating Quantum Instruction Language (Quil) programs";

View File

@ -1,28 +1,29 @@
{ lib
, attrs
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, httpx
, iso8601
, poetry-core
, pydantic
, pyjwt
, pytest-asyncio
, pytestCheckHook
, python-dateutil
, pythonAtLeast
, pythonOlder
, pythonRelaxDepsHook
, respx
, retrying
, rfc3339
, toml
{
lib,
attrs,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
httpx,
iso8601,
poetry-core,
pydantic,
pyjwt,
pytest-asyncio,
pytestCheckHook,
python-dateutil,
pythonAtLeast,
pythonOlder,
pythonRelaxDepsHook,
respx,
retrying,
rfc3339,
toml,
}:
buildPythonPackage rec {
pname = "qcs-api-client";
version = "0.23.1";
version = "0.24.1";
pyproject = true;
disabled = pythonOlder "3.7";
@ -31,7 +32,7 @@ buildPythonPackage rec {
owner = "rigetti";
repo = "qcs-api-client-python";
rev = "refs/tags/v${version}";
hash = "sha256-Z+RCjpSpfYU3oU5HQ8CzZfwqUjMHvCKVn+p2tq+VDxQ=";
hash = "sha256-7PgWIAHwMcuKXHxTX66xmLP1VTNYWecTIMbWoTQqmjs=";
};
patches = [
@ -50,12 +51,11 @@ buildPythonPackage rec {
"pydantic"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
build-system = [ poetry-core ];
propagatedBuildInputs = [
nativeBuildInputs = [ pythonRelaxDepsHook ];
dependencies = [
attrs
httpx
iso8601
@ -76,9 +76,7 @@ buildPythonPackage rec {
# Tests are failing on Python 3.11, Fatal Python error: Aborted
doCheck = !(pythonAtLeast "3.11");
pythonImportsCheck = [
"qcs_api_client"
];
pythonImportsCheck = [ "qcs_api_client" ];
meta = with lib; {
description = "Python library for accessing the Rigetti QCS API";

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +1,18 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, rustPlatform
, quil
, pytest-asyncio
, pytestCheckHook
, syrupy
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
quil,
rustPlatform,
syrupy,
}:
buildPythonPackage rec {
pname = "qcs-sdk-python";
version = "0.16.3";
version = "0.17.4";
pyproject = true;
disabled = pythonOlder "3.8";
@ -20,26 +21,24 @@ buildPythonPackage rec {
owner = "rigetti";
repo = "qcs-sdk-rust";
rev = "python/v${version}";
hash = "sha256-Q2PCARxaWqgVVnr2O+zhGcNHghC4gr31bxkv6+Rf/EQ=";
hash = "sha256-Z/NK+xnugFieJqAbvGaVvxUaz9RC1vpWb4ydZTVbZeU=";
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"quil-rs-0.22.5" = "sha256-HUp41mOBjyAavhjFO5IJXHh2dVPcpFuDJ03nyRRuCCk=";
"quil-rs-0.23.0" = "sha256-l9wj1j7PJ5L497dPlkEpJ4ctAfjUIada5Vbn2h5ioVE=";
};
};
buildAndTestSubdir = "crates/python";
nativeBuildInputs = [
build-system = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
propagatedBuildInputs = [
quil
];
dependencies = [ quil ];
nativeCheckInputs = [
pytest-asyncio

View File

@ -1,16 +1,17 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, rustPlatform
, numpy
, pytestCheckHook
, syrupy
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
rustPlatform,
numpy,
pytestCheckHook,
syrupy,
}:
buildPythonPackage rec {
pname = "quil";
version = "0.6.5";
version = "0.7.1";
pyproject = true;
disabled = pythonOlder "3.8";
@ -19,13 +20,13 @@ buildPythonPackage rec {
owner = "rigetti";
repo = "quil-rs";
rev = "quil-py/v${version}";
hash = "sha256-SYq0NOzYGJuXFPGjvYzGgKvioCk0hBxLR5S6VFU5d88=";
hash = "sha256-GFePbCJnVbzL4cpQ7fy1tk2l7NhAyTVW63lVYTv0/Oo=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
name = "${pname}-${version}";
inherit src;
hash = "sha256-qZY9eQxxlH59DE/RrZFC3G6Pp3IdJupPN5AhUnrKSKs=";
hash = "sha256-catUGCFbkvov1z52f6eyxogflu61VcjIItgEVEWzkpY=";
};
buildAndTestSubdir = "quil-py";
@ -34,14 +35,12 @@ buildPythonPackage rec {
cargo metadata --offline
'';
nativeBuildInputs = [
build-system = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
propagatedBuildInputs = [
numpy
];
dependencies = [ numpy ];
pythonImportsCheck = [ "numpy" ];