stripe-cli: 1.23.3 -> 1.23.5 (#375724)
[NixPkgs.git] / pkgs / development / python-modules / datadog / default.nix
blob1440d815c3383ed89010a92820bc1c43b7612fa7
2   lib,
3   buildPythonPackage,
4   click,
5   fetchPypi,
6   freezegun,
7   hatchling,
8   mock,
9   pytest-vcr,
10   pytestCheckHook,
11   python-dateutil,
12   pythonAtLeast,
13   pythonOlder,
14   requests,
15   vcrpy,
18 buildPythonPackage rec {
19   pname = "datadog";
20   version = "0.50.2";
21   pyproject = true;
23   disabled = pythonOlder "3.7";
25   src = fetchPypi {
26     inherit pname version;
27     hash = "sha256-F3JXdL8rsKSPHQltknB0ksGH8krgiWCvCwwvqXlY/VE=";
28   };
30   nativeBuildInputs = [ hatchling ];
32   propagatedBuildInputs = [ requests ];
34   __darwinAllowLocalNetworking = true;
36   nativeCheckInputs = [
37     click
38     freezegun
39     mock
40     pytestCheckHook
41     pytest-vcr
42     python-dateutil
43     vcrpy
44   ];
46   disabledTestPaths = [
47     "tests/performance"
48     # https://github.com/DataDog/datadogpy/issues/800
49     "tests/integration/api/test_*.py"
50   ];
52   disabledTests =
53     [
54       "test_default_settings_set"
55       # https://github.com/DataDog/datadogpy/issues/746
56       "TestDogshell"
57     ]
58     ++ lib.optionals (pythonAtLeast "3.13") [
59       # https://github.com/DataDog/datadogpy/issues/880
60       "test_timed_coroutine"
61     ];
63   pythonImportsCheck = [ "datadog" ];
65   meta = with lib; {
66     description = "Datadog Python library";
67     homepage = "https://github.com/DataDog/datadogpy";
68     changelog = "https://github.com/DataDog/datadogpy/blob/v${version}/CHANGELOG.md";
69     license = licenses.bsd3;
70     maintainers = [ ];
71   };