nixpkgs/pkgs/development/python-modules/datadog/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

84 lines
1.6 KiB
Nix
Raw Normal View History

2021-03-02 23:54:53 +01:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
# build-system
hatchling,
# dependencies
requests,
# testing
2021-03-02 23:54:53 +01:00
click,
freezegun,
mock,
pytest-vcr,
pytestCheckHook,
2021-03-02 23:54:53 +01:00
python-dateutil,
vcrpy,
}:
buildPythonPackage rec {
pname = "datadog";
version = "0.51.0";
2024-01-20 08:37:09 +01:00
pyproject = true;
src = fetchFromGitHub {
owner = "DataDog";
repo = "datadogpy";
tag = "v${version}";
hash = "sha256-DIuKawqOzth8XYF+M3fYm2kMeo3UbfS34/Qa4Y9V1h8=";
};
build-system = [ hatchling ];
dependencies = [ requests ];
2023-08-01 00:01:21 -07:00
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
2021-03-02 23:54:53 +01:00
click
freezegun
mock
pytestCheckHook
pytest-vcr
python-dateutil
vcrpy
];
disabledTestPaths = [
"tests/performance"
# https://github.com/DataDog/datadogpy/issues/800
"tests/integration/api/test_*.py"
2021-03-02 23:54:53 +01:00
];
disabledTests =
[
"test_default_settings_set"
# https://github.com/DataDog/datadogpy/issues/746
"TestDogshell"
2025-06-02 15:54:57 +02:00
# Flaky: test execution time against magic values
"test_distributed"
"test_timed"
"test_timed_in_ms"
"test_timed_start_stop_calls"
]
++ lib.optionals (pythonAtLeast "3.13") [
# https://github.com/DataDog/datadogpy/issues/880
"test_timed_coroutine"
];
2021-03-02 23:54:53 +01:00
pythonImportsCheck = [ "datadog" ];
2018-04-06 18:59:50 +02:00
meta = {
description = "Datadog Python library";
homepage = "https://github.com/DataDog/datadogpy";
changelog = "https://github.com/DataDog/datadogpy/blob/v${version}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.sarahec ];
};
}