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