2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
botocore,
|
|
|
|
bottle,
|
|
|
|
buildPythonPackage,
|
|
|
|
django,
|
|
|
|
fetchFromGitHub,
|
|
|
|
httpx,
|
|
|
|
importlib-metadata,
|
|
|
|
jsonpickle,
|
|
|
|
pymysql,
|
|
|
|
pytest-asyncio,
|
|
|
|
pynamodb,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
sqlalchemy,
|
|
|
|
webtest,
|
|
|
|
wrapt,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-xray-sdk";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.14.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aws";
|
|
|
|
repo = "aws-xray-sdk-python";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-rWP0yQ+Ril0UByOCWJKcL3mD7TvzK8Ddq9JlFIRBFU4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
botocore
|
|
|
|
jsonpickle
|
|
|
|
requests
|
|
|
|
wrapt
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
aiohttp
|
|
|
|
bottle
|
|
|
|
django
|
|
|
|
httpx
|
|
|
|
pymysql
|
|
|
|
pynamodb
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
sqlalchemy
|
|
|
|
webtest
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# This reduces the amount of dependencies
|
|
|
|
"tests/ext/"
|
|
|
|
# We don't care about benchmarks
|
|
|
|
"tests/test_local_sampling_benchmark.py"
|
|
|
|
"tests/test_patcher.py"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aws_xray_sdk" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "AWS X-Ray SDK for the Python programming language";
|
|
|
|
homepage = "https://github.com/aws/aws-xray-sdk-python";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/aws/aws-xray-sdk-python/blob/${version}/CHANGELOG.rst";
|
|
|
|
license = licenses.asl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|