python312Packages.quil: 0.16.0 -> 0.17.0 (#441627)
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
{
|
||||
buildPythonPackage,
|
||||
cirq-core,
|
||||
setuptools,
|
||||
pyquil,
|
||||
qcs-sdk-python,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cirq-rigetti";
|
||||
pyproject = true;
|
||||
inherit (cirq-core) version src;
|
||||
|
||||
sourceRoot = "${src.name}/${pname}";
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"pyquil"
|
||||
"qcs-sdk-python"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Remove outdated test
|
||||
rm cirq_rigetti/service_test.py
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
cirq-core
|
||||
pyquil
|
||||
qcs-sdk-python
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
disabledTestPaths = [
|
||||
# No need to test the version number
|
||||
"cirq_rigetti/_version_test.py"
|
||||
];
|
||||
|
||||
# cirq's importlib hook doesn't work here
|
||||
#pythonImportsCheck = [ "cirq_rigetti" ];
|
||||
|
||||
meta = {
|
||||
inherit (cirq-core.meta) changelog license maintainers;
|
||||
description = "Cirq package to simulate and connect to Rigetti quantum computers and Quil QVM";
|
||||
homepage = "https://github.com/quantumlib/Cirq/tree/main/cirq-rigetti";
|
||||
};
|
||||
}
|
||||
@@ -10,7 +10,6 @@
|
||||
cirq-google,
|
||||
cirq-ionq,
|
||||
cirq-pasqal,
|
||||
cirq-rigetti,
|
||||
cirq-web,
|
||||
|
||||
# tests
|
||||
@@ -30,7 +29,6 @@ buildPythonPackage {
|
||||
cirq-google
|
||||
cirq-ionq
|
||||
cirq-pasqal
|
||||
cirq-rigetti
|
||||
cirq-web
|
||||
];
|
||||
|
||||
@@ -44,7 +42,6 @@ buildPythonPackage {
|
||||
"cirq-google"
|
||||
"cirq-ionq"
|
||||
"cirq-pasqal"
|
||||
"cirq-rigetti"
|
||||
"cirq-web"
|
||||
"dev_tools"
|
||||
];
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "quil";
|
||||
version = "0.16.0";
|
||||
version = "0.17.0";
|
||||
pyproject = true;
|
||||
|
||||
# error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12)
|
||||
@@ -21,12 +21,12 @@ buildPythonPackage rec {
|
||||
owner = "rigetti";
|
||||
repo = "quil-rs";
|
||||
tag = "quil-py/v${version}";
|
||||
hash = "sha256-sj+JjE6y+toIjHO1J2g+3gzQMcfSa6zzQeOySATU48w=";
|
||||
hash = "sha256-sQvHar52IFVUM+AssPEtBcSGVEma9e909K/5c8H0WQw=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit pname version src;
|
||||
hash = "sha256-0KZikbCJgg4prR9XxfCJcZOTiV2Hcob2zLurxqCkH6I=";
|
||||
hash = "sha256-3qFrsevaVP2tPf0OV0hW6HhhWsj2BM/2sZUvdq1Aa4k=";
|
||||
};
|
||||
|
||||
buildAndTestSubdir = "quil-py";
|
||||
@@ -50,6 +50,10 @@ buildPythonPackage rec {
|
||||
syrupy
|
||||
];
|
||||
|
||||
pytestFlags = [
|
||||
"quil-py/tests_py"
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/rigetti/quil-rs/blob/${src.tag}/quil-py/CHANGELOG.md";
|
||||
description = "Python package for building and parsing Quil programs";
|
||||
|
||||
@@ -149,6 +149,7 @@ mapAliases ({
|
||||
chia-rs = throw "chia-rs has been removed. see https://github.com/NixOS/nixpkgs/pull/270254"; # added 2023-11-26
|
||||
class-registry = phx-class-registry; # added 2021-10-05
|
||||
cirq-ft = throw "cirq-ft is not longer provieded by cirq upstream"; # added 2024-08-31
|
||||
cirq-rigetti = throw "cirq-rigetti was removed because it is no longer provided by upstream"; # added 2025-09-13
|
||||
ciscoconfparse = throw "ciscoconfparse was archived by upstream, use ciscoconfparse2"; # added 2025-03-08
|
||||
cld2-cffi = throw "cld2-cffi has been removed, as the last release was in 2016"; # added 2024-05-20
|
||||
clvm = throw "clvm has been removed. see https://github.com/NixOS/nixpkgs/pull/270254"; # added 2023-11-26
|
||||
|
||||
@@ -2580,8 +2580,6 @@ self: super: with self; {
|
||||
|
||||
cirq-pasqal = callPackage ../development/python-modules/cirq-pasqal { };
|
||||
|
||||
cirq-rigetti = callPackage ../development/python-modules/cirq-rigetti { };
|
||||
|
||||
cirq-web = callPackage ../development/python-modules/cirq-web { };
|
||||
|
||||
ciscoconfparse2 = callPackage ../development/python-modules/ciscoconfparse2 { };
|
||||
|
||||
Reference in New Issue
Block a user