nixpkgs/pkgs/development/python-modules/datadog/default.nix
Doron Behar cd5b07f01e
Merge pull request #112713 from r-ryantm/auto-update/python3.7-datadog
python37Packages.datadog: 0.39.0 -> 0.40.0
2021-04-11 08:47:50 +00:00

62 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, decorator
, requests
, typing
, configparser
, click
, freezegun
, mock
, pytestCheckHook
, pytest-vcr
, python-dateutil
, vcrpy
}:
buildPythonPackage rec {
pname = "datadog";
version = "0.40.0";
src = fetchPypi {
inherit pname version;
sha256 = "4bbd66a02bbcf9cd03ba05194d605a64c9efb7aed90d5e69c6ec42655c3c01a4";
};
postPatch = ''
find . -name '*.pyc' -exec rm {} \;
'';
propagatedBuildInputs = [ decorator requests ]
++ lib.optional (pythonOlder "3.5") typing
++ lib.optional (pythonOlder "3.0") configparser;
checkInputs = [
click
freezegun
mock
pytestCheckHook
pytest-vcr
python-dateutil
vcrpy
];
disabledTestPaths = [
"tests/unit/dogstatsd/test_statsd.py" # does not work in sandbox
];
disabledTests = [
"test_default_settings_set"
"test_threadstats_thread_safety"
];
pythonImportsCheck = [ "datadog" ];
meta = with lib; {
description = "The Datadog Python library";
license = licenses.bsd3;
homepage = "https://github.com/DataDog/datadogpy";
};
}