1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonAtLeast 5, isPy27 6, futures ? null 7, gevent 8, mock 9, pytestCheckHook 10, tornado 11, six 12}: 13 14buildPythonPackage rec { 15 pname = "opentracing"; 16 version = "2.4.0"; 17 format = "setuptools"; 18 19 # incompatible with asyncio changes in 3.11 and deprecated 20 # https://github.com/opentracing/specification/issues/163 21 disabled = pythonAtLeast "3.11"; 22 23 src = fetchPypi { 24 inherit pname version; 25 sha256 = "a173117e6ef580d55874734d1fa7ecb6f3655160b8b8974a2a1e98e5ec9c840d"; 26 }; 27 28 propagatedBuildInputs = lib.optional isPy27 futures; 29 30 nativeCheckInputs = [ 31 gevent 32 mock 33 pytestCheckHook 34 six 35 tornado 36 ]; 37 38 meta = with lib; { 39 homepage = "https://github.com/opentracing/opentracing-python"; 40 description = "Platform API for OpenTracing"; 41 license = licenses.asl20; 42 maintainers = with maintainers; [ rakesh4g ]; 43 }; 44}