1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, futures ? null
6, gevent
7, mock
8, pytest
9, tornado }:
10
11buildPythonPackage rec {
12 pname = "opentracing";
13 version = "2.4.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "a173117e6ef580d55874734d1fa7ecb6f3655160b8b8974a2a1e98e5ec9c840d";
18 };
19
20 propagatedBuildInputs = lib.optional isPy27 futures;
21
22 checkInputs = [ gevent mock pytest tornado ];
23
24 checkPhase = ''
25 pytest
26 '';
27
28 meta = with lib; {
29 homepage = "https://github.com/opentracing/opentracing-python";
30 description = "Platform API for OpenTracing";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ rakesh4g ];
33 };
34}