2020-08-16 21:27:13 -07:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
|
|
, decorator, requests, simplejson, pillow, typing
|
2019-12-22 11:41:32 -08:00
|
|
|
, nose, mock, pytest, freezegun }:
|
2018-03-31 12:40:01 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datadog";
|
2020-09-29 08:34:54 +00:00
|
|
|
version = "0.39.0";
|
2018-03-31 12:40:01 +02:00
|
|
|
|
2018-10-30 16:42:37 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-29 08:34:54 +00:00
|
|
|
sha256 = "b0ef69a27aad0e4412c1ac3e6894fa1b5741db735515c34dfe1606d8cf30e4e5";
|
2018-03-31 12:40:01 +02:00
|
|
|
};
|
|
|
|
|
2018-11-29 12:45:50 +01:00
|
|
|
postPatch = ''
|
|
|
|
find . -name '*.pyc' -exec rm {} \;
|
|
|
|
'';
|
|
|
|
|
2020-08-16 21:27:13 -07:00
|
|
|
propagatedBuildInputs = [ decorator requests simplejson pillow ]
|
|
|
|
++ lib.optionals (pythonOlder "3.5") [ typing ];
|
2018-03-31 12:40:01 +02:00
|
|
|
|
2019-12-22 11:41:32 -08:00
|
|
|
checkInputs = [ nose mock pytest freezegun ];
|
2019-10-27 08:17:49 -07:00
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
2018-04-06 18:59:50 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
2018-03-31 12:40:01 +02:00
|
|
|
description = "The Datadog Python library";
|
|
|
|
license = licenses.bsd3;
|
2020-02-24 09:40:26 +00:00
|
|
|
homepage = "https://github.com/DataDog/datadogpy";
|
2018-03-31 12:40:01 +02:00
|
|
|
};
|
|
|
|
}
|