2019-10-31 06:19:33 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
2021-03-24 16:45:56 +00:00
|
|
|
, futures ? null
|
2019-10-31 06:19:33 +00:00
|
|
|
, gevent
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
, tornado }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "opentracing";
|
2020-11-29 14:04:35 +00:00
|
|
|
version = "2.4.0";
|
2019-10-31 06:19:33 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:35 +00:00
|
|
|
sha256 = "a173117e6ef580d55874734d1fa7ecb6f3655160b8b8974a2a1e98e5ec9c840d";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|