depot/third_party/nixpkgs/pkgs/development/python-modules/datadog/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

66 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, hatchling
, decorator
, requests
, typing ? null
, configparser
, click
, freezegun
, mock
, pytestCheckHook
, pytest-vcr
, python-dateutil
, vcrpy
}:
buildPythonPackage rec {
pname = "datadog";
version = "0.44.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-BxFw8MfvIlEdv3+b12xL5QDuLT1SBykApch7VJXSxzM=";
};
postPatch = ''
find . -name '*.pyc' -exec rm {} \;
'';
nativeBuildInputs = [
hatchling
];
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/performance"
];
disabledTests = [
"test_default_settings_set"
];
pythonImportsCheck = [ "datadog" ];
meta = with lib; {
description = "The Datadog Python library";
license = licenses.bsd3;
homepage = "https://github.com/DataDog/datadogpy";
};
}