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

61 lines
1.0 KiB
Nix
Raw Normal View History

2021-03-02 22:54:53 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, decorator
, requests
, typing ? null
2021-03-02 22:54:53 +00:00
, configparser
, click
, freezegun
, mock
, pytestCheckHook
, pytest-vcr
, python-dateutil
, vcrpy
}:
buildPythonPackage rec {
pname = "datadog";
version = "0.42.0";
2018-10-30 15:42:37 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-em+sF6fQnxiDq5pFzk/3oWqhpes8xMbN2sf4xT59Hps=";
};
2018-11-29 11:45:50 +00:00
postPatch = ''
find . -name '*.pyc' -exec rm {} \;
'';
2021-03-02 22:54:53 +00:00
propagatedBuildInputs = [ decorator requests ]
++ lib.optional (pythonOlder "3.5") typing
++ lib.optional (pythonOlder "3.0") configparser;
2021-03-02 22:54:53 +00:00
checkInputs = [
click
freezegun
mock
pytestCheckHook
pytest-vcr
python-dateutil
vcrpy
];
disabledTestPaths = [
"tests/performance"
2021-03-02 22:54:53 +00:00
];
disabledTests = [
"test_default_settings_set"
];
pythonImportsCheck = [ "datadog" ];
2018-04-06 17:59:50 +01:00
meta = with lib; {
description = "The Datadog Python library";
license = licenses.bsd3;
homepage = "https://github.com/DataDog/datadogpy";
};
}