depot/third_party/nixpkgs/pkgs/development/python-modules/cirq-rigetti/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

92 lines
1.4 KiB
Nix

{
buildPythonPackage,
cirq-core,
lib,
pytestCheckHook,
attrs,
certifi,
h11,
httpcore,
idna,
httpx,
iso8601,
pydantic,
pyjwt,
pyquil,
python-dateutil,
pythonOlder,
qcs-api-client,
retrying,
rfc3339,
rfc3986,
six,
sniffio,
toml,
}:
buildPythonPackage rec {
pname = "cirq-rigetti";
format = "setuptools";
inherit (cirq-core) version src;
disabled = pythonOlder "3.7";
sourceRoot = "${src.name}/${pname}";
pythonRelaxDeps = [
"attrs"
"certifi"
"h11"
"httpcore"
"httpx"
"idna"
"iso8601"
"pydantic"
"pyjwt"
"pyquil"
"qcs-api-client"
"rfc3986"
];
postPatch = ''
# Remove outdated test
rm cirq_rigetti/service_test.py
'';
propagatedBuildInputs = [
cirq-core
attrs
certifi
h11
httpcore
httpx
idna
iso8601
pydantic
pyjwt
pyquil
python-dateutil
qcs-api-client
retrying
rfc3339
rfc3986
six
sniffio
toml
];
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 = cirq-core.meta // {
# ModuleNotFoundError: No module named 'pyquil.parser'
broken = lib.versionAtLeast pyquil.version "4";
};
}