2019-10-31 06:19:33 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, futures
|
|
|
|
, gevent
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
, tornado }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "opentracing";
|
2020-01-07 10:56:39 +00:00
|
|
|
version = "2.3.0";
|
2019-10-31 06:19:33 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-01-07 10:56:39 +00:00
|
|
|
sha256 = "0rcpmhy7hm6ljlm1w455il53s1amq2vii2x1wfkrcx3sj4s0dc9k";
|
2019-10-31 06:19:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = lib.optional isPy27 futures;
|
|
|
|
|
|
|
|
checkInputs = [ gevent mock pytest tornado ];
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2019-10-31 06:19:33 +00:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/opentracing/opentracing-python";
|
2019-10-31 06:19:33 +00:00
|
|
|
description = "Platform API for OpenTracing";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
|
|
};
|
|
|
|
}
|