nixpkgs/pkgs/development/python-modules/datadog/default.nix

31 lines
704 B
Nix
Raw Normal View History

2018-10-30 16:42:37 +01:00
{ lib, buildPythonPackage, fetchPypi
2019-10-27 16:17:49 +01:00
, decorator, requests, simplejson, pillow
, nose, mock, pytest, freezegun }:
buildPythonPackage rec {
pname = "datadog";
2019-12-19 20:31:08 +01:00
version = "0.33.0";
2018-10-30 16:42:37 +01:00
src = fetchPypi {
inherit pname version;
2019-12-19 20:31:08 +01:00
sha256 = "bce73f33a4496b004402baa502251150e3b48a48f610ff89d4cd110b366ee0ab";
};
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 ];
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; {
description = "The Datadog Python library";
license = licenses.bsd3;
homepage = https://github.com/DataDog/datadogpy;
};
}