2018-10-30 15:42:37 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2018-04-06 17:59:50 +01:00
|
|
|
, decorator, requests, simplejson
|
|
|
|
, nose, mock }:
|
2018-03-31 11:40:01 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datadog";
|
2018-10-30 15:42:37 +00:00
|
|
|
version = "0.23.0";
|
2018-03-31 11:40:01 +01:00
|
|
|
|
2018-10-30 15:42:37 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "6ed9aec2b3a26722b74465c2ed36d2efdb9c9fac1a07a84d81fa2fc0cfa66ae4";
|
2018-03-31 11:40:01 +01:00
|
|
|
};
|
|
|
|
|
2018-04-06 17:59:50 +01:00
|
|
|
propagatedBuildInputs = [ decorator requests simplejson ];
|
2018-03-31 11:40:01 +01:00
|
|
|
|
2018-04-06 17:59:50 +01:00
|
|
|
checkInputs = [ nose mock ];
|
|
|
|
|
2018-05-30 03:26:05 +01:00
|
|
|
# v0.20.0 tests are nondeterministic:
|
|
|
|
# test_send_batch_metrics: https://hydra.nixos.org/build/74920933
|
|
|
|
# test_timed_decorator_threaded: https://hydra.nixos.org/build/74328993
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-04-06 17:59:50 +01:00
|
|
|
meta = with lib; {
|
2018-03-31 11:40:01 +01:00
|
|
|
description = "The Datadog Python library";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = https://github.com/DataDog/datadogpy;
|
|
|
|
};
|
|
|
|
}
|