diff --git a/pkgs/development/python-modules/opentracing/default.nix b/pkgs/development/python-modules/opentracing/default.nix index f21bf4aa7825..706c47714afe 100644 --- a/pkgs/development/python-modules/opentracing/default.nix +++ b/pkgs/development/python-modules/opentracing/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, pythonAtLeast , isPy27 , futures ? null , gevent @@ -15,6 +16,10 @@ buildPythonPackage rec { version = "2.4.0"; format = "setuptools"; + # incompatible with asyncio changes in 3.11 and deprecated + # https://github.com/opentracing/specification/issues/163 + disabled = pythonAtLeast "3.11"; + src = fetchPypi { inherit pname version; sha256 = "a173117e6ef580d55874734d1fa7ecb6f3655160b8b8974a2a1e98e5ec9c840d";