Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aws-xray-sdk / default.nix
blob43d59437330bfcbeb1525dce7814c6f83e2309f9
1 { lib
2 , aiohttp
3 , botocore
4 , bottle
5 , buildPythonPackage
6 , django
7 , fetchFromGitHub
8 , httpx
9 , importlib-metadata
10 , jsonpickle
11 , pymysql
12 , pytest-asyncio
13 , pynamodb
14 , pytestCheckHook
15 , pythonOlder
16 , requests
17 , setuptools
18 , sqlalchemy
19 , webtest
20 , wrapt
23 buildPythonPackage rec {
24   pname = "aws-xray-sdk";
25   version = "2.13.0";
26   pyproject = true;
28   disabled = pythonOlder "3.7";
30   src = fetchFromGitHub {
31     owner = "aws";
32     repo = "aws-xray-sdk-python";
33     rev = "refs/tags/${version}";
34     hash = "sha256-KhYYzeOteQxS1ltEUbjsDriHXO0Kom9YiCvVhSNvXVQ=";
35   };
37   nativeBuildInputs = [
38     setuptools
39   ];
41   propagatedBuildInputs = [
42     botocore
43     jsonpickle
44     requests
45     wrapt
46   ] ++ lib.optionals (pythonOlder "3.8") [
47     importlib-metadata
48   ];
50   nativeCheckInputs = [
51     aiohttp
52     bottle
53     django
54     httpx
55     pymysql
56     pynamodb
57     pytest-asyncio
58     pytestCheckHook
59     sqlalchemy
60     webtest
61   ];
63   disabledTestPaths = [
64     # This reduces the amount of dependencies
65     "tests/ext/"
66     # We don't care about benchmarks
67     "tests/test_local_sampling_benchmark.py"
68     "tests/test_patcher.py"
69   ];
71   pythonImportsCheck = [
72     "aws_xray_sdk"
73   ];
75   meta = with lib; {
76     description = "AWS X-Ray SDK for the Python programming language";
77     homepage = "https://github.com/aws/aws-xray-sdk-python";
78     changelog = "https://github.com/aws/aws-xray-sdk-python/blob/${version}/CHANGELOG.rst";
79     license = licenses.asl20;
80     maintainers = with maintainers; [ ];
81   };