2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2024-01-02 11:29:13 +00:00
|
|
|
, aiohttp
|
|
|
|
, botocore
|
|
|
|
, bottle
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2024-01-02 11:29:13 +00:00
|
|
|
, django
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpx
|
2020-06-15 15:56:04 +00:00
|
|
|
, importlib-metadata
|
2020-04-24 23:36:52 +00:00
|
|
|
, jsonpickle
|
2024-01-02 11:29:13 +00:00
|
|
|
, pymysql
|
|
|
|
, pytest-asyncio
|
|
|
|
, pynamodb
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2024-01-02 11:29:13 +00:00
|
|
|
, sqlalchemy
|
|
|
|
, webtest
|
|
|
|
, wrapt
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-xray-sdk";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.12.1";
|
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}";
|
|
|
|
hash = "sha256-NLFNst4Yqsz2u5IXwe8OdJPW77irLRO5tWWn1uV3tMg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
botocore
|
|
|
|
jsonpickle
|
|
|
|
requests
|
|
|
|
wrapt
|
2020-06-15 15:56:04 +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"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aws_xray_sdk"
|
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|