python312Packages.cirq-*: refactor (#343807)
This commit is contained in:
@@ -3,21 +3,24 @@
|
||||
cirq-core,
|
||||
requests,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cirq-aqt";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
inherit (cirq-core) version src meta;
|
||||
|
||||
sourceRoot = "${src.name}/${pname}";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "requests~=2.18" "requests"
|
||||
--replace-fail "requests~=2.18" "requests"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
cirq-core
|
||||
requests
|
||||
];
|
||||
|
||||
@@ -34,7 +34,7 @@ buildPythonPackage rec {
|
||||
version = "1.4.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "quantumlib";
|
||||
@@ -47,7 +47,7 @@ buildPythonPackage rec {
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "matplotlib~=3.0" "matplotlib"
|
||||
--replace-fail "matplotlib~=3.0" "matplotlib"
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
@@ -15,11 +15,9 @@ buildPythonPackage rec {
|
||||
|
||||
sourceRoot = "${src.name}/${pname}";
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
cirq-core
|
||||
google-api-core
|
||||
protobuf
|
||||
|
||||
@@ -3,21 +3,24 @@
|
||||
cirq-core,
|
||||
requests,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cirq-ionq";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
inherit (cirq-core) version src meta;
|
||||
|
||||
sourceRoot = "${src.name}/${pname}";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "requests~=2.18" "requests"
|
||||
--replace-fail "requests~=2.18" "requests"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
cirq-core
|
||||
requests
|
||||
];
|
||||
|
||||
@@ -3,21 +3,24 @@
|
||||
cirq-core,
|
||||
requests,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cirq-pasqal";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
inherit (cirq-core) version src meta;
|
||||
|
||||
sourceRoot = "${src.name}/${pname}";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "requests~=2.18" "requests"
|
||||
--replace-fail "requests~=2.18" "requests"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
cirq-core
|
||||
requests
|
||||
];
|
||||
|
||||
@@ -1,36 +1,21 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
cirq-core,
|
||||
fetchpatch2,
|
||||
lib,
|
||||
pytestCheckHook,
|
||||
attrs,
|
||||
certifi,
|
||||
h11,
|
||||
httpcore,
|
||||
idna,
|
||||
httpx,
|
||||
iso8601,
|
||||
pydantic,
|
||||
pyjwt,
|
||||
pyquil,
|
||||
python-dateutil,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
qcs-api-client,
|
||||
retrying,
|
||||
rfc3339,
|
||||
rfc3986,
|
||||
six,
|
||||
sniffio,
|
||||
toml,
|
||||
qcs-sdk-python,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cirq-rigetti";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
inherit (cirq-core) version src;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
patches = [
|
||||
# https://github.com/quantumlib/Cirq/pull/6734
|
||||
@@ -44,46 +29,19 @@ buildPythonPackage rec {
|
||||
|
||||
sourceRoot = "${src.name}/${pname}";
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"attrs"
|
||||
"certifi"
|
||||
"h11"
|
||||
"httpcore"
|
||||
"httpx"
|
||||
"idna"
|
||||
"iso8601"
|
||||
"pydantic"
|
||||
"pyjwt"
|
||||
"pyquil"
|
||||
"qcs-api-client"
|
||||
"rfc3986"
|
||||
];
|
||||
pythonRelaxDeps = [ "pyquil" ];
|
||||
|
||||
postPatch = ''
|
||||
# Remove outdated test
|
||||
rm cirq_rigetti/service_test.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
cirq-core
|
||||
attrs
|
||||
certifi
|
||||
h11
|
||||
httpcore
|
||||
httpx
|
||||
idna
|
||||
iso8601
|
||||
pydantic
|
||||
pyjwt
|
||||
pyquil
|
||||
python-dateutil
|
||||
qcs-api-client
|
||||
retrying
|
||||
rfc3339
|
||||
rfc3986
|
||||
six
|
||||
sniffio
|
||||
toml
|
||||
qcs-sdk-python
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
@@ -2,16 +2,19 @@
|
||||
buildPythonPackage,
|
||||
cirq-core,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cirq-web";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
inherit (cirq-core) version src meta;
|
||||
|
||||
sourceRoot = "${src.name}/${pname}";
|
||||
|
||||
propagatedBuildInputs = [ cirq-core ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ cirq-core ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
|
||||
@@ -8,14 +8,17 @@
|
||||
cirq-rigetti,
|
||||
cirq-web,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cirq";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
inherit (cirq-core) version src meta;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
cirq-aqt
|
||||
cirq-core
|
||||
cirq-ionq
|
||||
|
||||
Reference in New Issue
Block a user