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.

70 lines
1.2 KiB
Nix
Raw Normal View History

2021-03-02 23:54:53 +01:00
{ lib
, buildPythonPackage
, click
, fetchPypi
2021-03-02 23:54:53 +01:00
, freezegun
, hatchling
2021-03-02 23:54:53 +01:00
, mock
, pytest-vcr
, pytestCheckHook
2021-03-02 23:54:53 +01:00
, python-dateutil
, pythonAtLeast
, pythonOlder
, requests
2021-03-02 23:54:53 +01:00
, vcrpy
}:
buildPythonPackage rec {
pname = "datadog";
version = "0.45.0";
format = "pyproject";
disabled = pythonOlder "3.7";
2018-10-30 16:42:37 +01:00
src = fetchPypi {
inherit pname version;
hash = "sha256-a//tZ0SMtL9d/1WfsqzuHAbn2oYSuOKnNPJ4tQs5ZgM=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
requests
];
nativeCheckInputs = [
2021-03-02 23:54:53 +01:00
click
freezegun
mock
pytestCheckHook
pytest-vcr
python-dateutil
vcrpy
];
disabledTestPaths = [
"tests/performance"
2021-03-02 23:54:53 +01:00
];
disabledTests = [
"test_default_settings_set"
] ++ lib.optionals (pythonAtLeast "3.11") [
# https://github.com/DataDog/datadogpy/issues/746
"TestDogshell"
2021-03-02 23:54:53 +01:00
];
pythonImportsCheck = [
"datadog"
];
2018-04-06 18:59:50 +02:00
meta = with lib; {
description = "The Datadog Python library";
homepage = "https://github.com/DataDog/datadogpy";
changelog = "https://github.com/DataDog/datadogpy/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}