2018-10-30 16:42:37 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2019-10-27 16:17:49 +01:00
|
|
|
, decorator, requests, simplejson, pillow
|
2019-12-22 20:41:32 +01:00
|
|
|
, nose, mock, pytest, freezegun }:
|
2018-03-31 12:40:01 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datadog";
|
2020-08-16 19:30:57 +02:00
|
|
|
version = "0.38.0";
|
2018-03-31 12:40:01 +02:00
|
|
|
|
2018-10-30 16:42:37 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 19:30:57 +02:00
|
|
|
sha256 = "401cd1dcf2d5de05786016a1c790bff28d1428d12ae1dbe11485f9cb5502939b";
|
2018-03-31 12:40:01 +02:00
|
|
|
};
|
|
|
|
|
2018-11-29 12:45:50 +01:00
|
|
|
postPatch = ''
|
|
|
|
find . -name '*.pyc' -exec rm {} \;
|
|
|
|
'';
|
|
|
|
|
2019-10-27 16:17:49 +01:00
|
|
|
propagatedBuildInputs = [ decorator requests simplejson pillow ];
|
2018-03-31 12:40:01 +02:00
|
|
|
|
2019-12-22 20:41:32 +01:00
|
|
|
checkInputs = [ nose mock pytest freezegun ];
|
2019-10-27 16:17:49 +01: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 10:40:26 +01:00
|
|
|
homepage = "https://github.com/DataDog/datadogpy";
|
2018-03-31 12:40:01 +02:00
|
|
|
};
|
|
|
|
}
|