2018-10-30 15:42:37 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2019-10-27 15:17:49 +00:00
|
|
|
, decorator, requests, simplejson, pillow
|
|
|
|
, nose, mock, pytest }:
|
2018-03-31 10:40:01 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datadog";
|
2019-10-24 06:47:28 +00:00
|
|
|
version = "0.30.0";
|
2018-03-31 10:40:01 +00:00
|
|
|
|
2018-10-30 15:42:37 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 06:47:28 +00:00
|
|
|
sha256 = "07c053e39c6509023d69bc2f3b8e3d5d101b4e75baf2da2b9fc707391c3e773d";
|
2018-03-31 10:40:01 +00:00
|
|
|
};
|
|
|
|
|
2018-11-29 11:45:50 +00:00
|
|
|
postPatch = ''
|
|
|
|
find . -name '*.pyc' -exec rm {} \;
|
|
|
|
'';
|
|
|
|
|
2019-10-27 15:17:49 +00:00
|
|
|
propagatedBuildInputs = [ decorator requests simplejson pillow ];
|
2018-03-31 10:40:01 +00:00
|
|
|
|
2019-10-27 15:17:49 +00:00
|
|
|
checkInputs = [ nose mock pytest ];
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
2018-04-06 16:59:50 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2018-03-31 10:40:01 +00:00
|
|
|
description = "The Datadog Python library";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = https://github.com/DataDog/datadogpy;
|
|
|
|
};
|
|
|
|
}
|