summary refs log tree commit diff
path: root/pkgs/development/python-modules/opentracing/default.nix
blob: 63107ec372a6b3f953a19c3fe165a2db6e096171 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, futures
, gevent
, mock
, pytest
, tornado }:

buildPythonPackage rec {
  pname = "opentracing";
  version = "2.3.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0rcpmhy7hm6ljlm1w455il53s1amq2vii2x1wfkrcx3sj4s0dc9k";
  };

  propagatedBuildInputs = lib.optional isPy27 futures;

  checkInputs = [ gevent mock pytest tornado ];
  
  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    homepage = "https://github.com/opentracing/opentracing-python";
    description = "Platform API for OpenTracing";
    license = licenses.asl20;
    maintainers = with maintainers; [ rakesh4g ];
  };
}