2018-10-30 08:42:37 -07:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2019-10-27 08:17:49 -07:00
|
|
|
, decorator, requests, simplejson, pillow
|
2019-12-22 11:41:32 -08:00
|
|
|
, nose, mock, pytest, freezegun }:
|
2018-03-31 03:40:01 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datadog";
|
2020-05-23 00:30:20 -07:00
|
|
|
version = "0.36.0";
|
2018-03-31 03:40:01 -07:00
|
|
|
|
2018-10-30 08:42:37 -07:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-23 00:30:20 -07:00
|
|
|
sha256 = "1kkbsrzxc2a6k319lh98qkinn99dzcqz8h4fm25q17dlgmc9gq9z";
|
2018-03-31 03:40:01 -07:00
|
|
|
};
|
|
|
|
|
2018-11-29 03:45:50 -08:00
|
|
|
postPatch = ''
|
|
|
|
find . -name '*.pyc' -exec rm {} \;
|
|
|
|
'';
|
|
|
|
|
2019-10-27 08:17:49 -07:00
|
|
|
propagatedBuildInputs = [ decorator requests simplejson pillow ];
|
2018-03-31 03:40:01 -07: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 09:59:50 -07:00
|
|
|
|
|
|
|
meta = with lib; {
|
2018-03-31 03:40:01 -07:00
|
|
|
description = "The Datadog Python library";
|
|
|
|
license = licenses.bsd3;
|
2020-02-24 01:40:26 -08:00
|
|
|
homepage = "https://github.com/DataDog/datadogpy";
|
2018-03-31 03:40:01 -07:00
|
|
|
};
|
|
|
|
}
|