mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
1b2c716b68
The upstream project has been archived.
45 lines
895 B
Nix
45 lines
895 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonAtLeast
|
|
, isPy27
|
|
, futures ? null
|
|
, gevent
|
|
, mock
|
|
, pytestCheckHook
|
|
, tornado
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "opentracing";
|
|
version = "2.4.0";
|
|
format = "setuptools";
|
|
|
|
# incompatible with asyncio changes in 3.11 and deprecated
|
|
# https://github.com/opentracing/specification/issues/163
|
|
disabled = pythonAtLeast "3.11";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a173117e6ef580d55874734d1fa7ecb6f3655160b8b8974a2a1e98e5ec9c840d";
|
|
};
|
|
|
|
propagatedBuildInputs = lib.optional isPy27 futures;
|
|
|
|
nativeCheckInputs = [
|
|
gevent
|
|
mock
|
|
pytestCheckHook
|
|
six
|
|
tornado
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/opentracing/opentracing-python";
|
|
description = "Platform API for OpenTracing";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
};
|
|
}
|