2020-09-25 04:45:31 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
|
|
, decorator, requests, simplejson, pillow, typing
|
2020-04-24 23:36:52 +00:00
|
|
|
, nose, mock, pytest, freezegun }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datadog";
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "0.39.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "b0ef69a27aad0e4412c1ac3e6894fa1b5741db735515c34dfe1606d8cf30e4e5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
find . -name '*.pyc' -exec rm {} \;
|
|
|
|
'';
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [ decorator requests simplejson pillow ]
|
|
|
|
++ lib.optionals (pythonOlder "3.5") [ typing ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkInputs = [ nose mock pytest freezegun ];
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The Datadog Python library";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = "https://github.com/DataDog/datadogpy";
|
|
|
|
};
|
|
|
|
}
|