Merge pull request #270585 from fabaff/rpcq-fix
python311Packages.rpcq: disable failing tests
This commit is contained in:
@@ -9,22 +9,32 @@
|
||||
, pythonOlder
|
||||
, pyzmq
|
||||
, ruamel-yaml
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rpcq";
|
||||
version = "3.10.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rigetti";
|
||||
repo = pname;
|
||||
repo = "rpcq";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-J7jtGXJIF3jp0a0IQZmSR4TWf9D02Luau+Bupmi/d68=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "msgpack>=0.6,<1.0" "msgpack"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
msgpack
|
||||
python-rapidjson
|
||||
@@ -38,14 +48,10 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "msgpack>=0.6,<1.0" "msgpack"
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# Test doesn't work properly on Hydra
|
||||
"test_client_backlog"
|
||||
pytestFlagsArray = [
|
||||
# Don't run tests that spin-up a zmq server
|
||||
"rpcq/test/test_base.py"
|
||||
"rpcq/test/test_spec.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
||||
Reference in New Issue
Block a user