9405df4a82
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
34 lines
677 B
Nix
34 lines
677 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, futures ? null
|
|
, gevent
|
|
, mock
|
|
, pytest
|
|
, tornado }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "opentracing";
|
|
version = "2.4.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a173117e6ef580d55874734d1fa7ecb6f3655160b8b8974a2a1e98e5ec9c840d";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|