python3Packages.rpcq: init at 3.9.2

This commit is contained in:
Fabian Affolter 2021-09-18 21:18:17 +02:00
parent 74132a11cc
commit 44cfa2dc00
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, msgpack
, numpy
, pytest-asyncio
, pytestCheckHook
, python-rapidjson
, pythonOlder
, pyzmq
, ruamel-yaml
}:
buildPythonPackage rec {
pname = "rpcq";
version = "3.9.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "rigetti";
repo = pname;
rev = "v${version}";
sha256 = "1vvf6y7459f8aamhkcxx36ajiai143s2vwg751x0dl0lx7hp3yn5";
};
propagatedBuildInputs = [
msgpack
python-rapidjson
pyzmq
ruamel-yaml
];
checkInputs = [
numpy
pytest-asyncio
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "msgpack>=0.6,<1.0" "msgpack"
'';
pythonImportsCheck = [ "rpcq" ];
meta = with lib; {
description = "The RPC framework and message specification for rigetti Quantum Cloud services";
homepage = "https://github.com/rigetti/rpcq";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1465,6 +1465,8 @@ in {
cirq-google = callPackage ../development/python-modules/cirq-google { };
cirq-rigetti = callPackage ../development/python-modules/cirq-rigetti { };
cirq-pasqal = callPackage ../development/python-modules/cirq-pasqal { };
cirq-web = callPackage ../development/python-modules/cirq-web { };
@ -7918,6 +7920,8 @@ in {
routes = callPackage ../development/python-modules/routes { };
rpcq = callPackage ../development/python-modules/rpcq { };
rpdb = callPackage ../development/python-modules/rpdb { };
rply = callPackage ../development/python-modules/rply { };