1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, futures
6, gevent
7, mock
8, pytest
9, tornado }:
10
11buildPythonPackage rec {
12 pname = "opentracing";
13 version = "2.3.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "0rcpmhy7hm6ljlm1w455il53s1amq2vii2x1wfkrcx3sj4s0dc9k";
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}