2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
2023-02-22 10:55:15 +00:00
|
|
|
, fetchPypi
|
2021-03-09 03:18:52 +00:00
|
|
|
, freezegun
|
2023-02-22 10:55:15 +00:00
|
|
|
, hatchling
|
2021-03-09 03:18:52 +00:00
|
|
|
, mock
|
|
|
|
, pytest-vcr
|
2023-02-22 10:55:15 +00:00
|
|
|
, pytestCheckHook
|
2021-03-09 03:18:52 +00:00
|
|
|
, python-dateutil
|
2023-02-22 10:55:15 +00:00
|
|
|
, pythonAtLeast
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2021-03-09 03:18:52 +00:00
|
|
|
, vcrpy
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datadog";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.49.1";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-TLenmRr2ytuGj+RQzUVkc+ZfEfxni3189hBE/xxgdNg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-09 03:18:52 +00:00
|
|
|
click
|
|
|
|
freezegun
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-vcr
|
|
|
|
python-dateutil
|
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
2021-04-13 19:44:15 +00:00
|
|
|
"tests/performance"
|
2024-01-13 08:15:51 +00:00
|
|
|
# https://github.com/DataDog/datadogpy/issues/800
|
|
|
|
"tests/integration/api/test_*.py"
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_default_settings_set"
|
2023-02-22 10:55:15 +00:00
|
|
|
# https://github.com/DataDog/datadogpy/issues/746
|
|
|
|
"TestDogshell"
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"datadog"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The Datadog Python library";
|
|
|
|
homepage = "https://github.com/DataDog/datadogpy";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/DataDog/datadogpy/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|