2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, decorator
|
|
|
|
, requests
|
2021-04-26 19:14:03 +00:00
|
|
|
, typing ? null
|
2021-03-09 03:18:52 +00:00
|
|
|
, configparser
|
|
|
|
, click
|
|
|
|
, freezegun
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-vcr
|
|
|
|
, python-dateutil
|
|
|
|
, vcrpy
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datadog";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.41.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-PeGkO4qNX2sZ0WLsG0gtxasmNsWc9l5gWJcCMEUQpok=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
find . -name '*.pyc' -exec rm {} \;
|
|
|
|
'';
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
propagatedBuildInputs = [ decorator requests ]
|
|
|
|
++ lib.optional (pythonOlder "3.5") typing
|
|
|
|
++ lib.optional (pythonOlder "3.0") configparser;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
checkInputs = [
|
|
|
|
click
|
|
|
|
freezegun
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-vcr
|
|
|
|
python-dateutil
|
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
2021-04-13 19:44:15 +00:00
|
|
|
"tests/performance"
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_default_settings_set"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "datadog" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The Datadog Python library";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = "https://github.com/DataDog/datadogpy";
|
|
|
|
};
|
|
|
|
}
|