3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/datadog/default.nix

31 lines
694 B
Nix
Raw Normal View History

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, freezegun }:
buildPythonPackage rec {
pname = "datadog";
version = "0.35.0";
2018-10-30 15:42:37 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "0qpy6mg9gfjxvjms0aaglzayhmdds4agv0lh05g2mkfw620nm8zl";
};
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 ];
checkInputs = [ nose mock pytest freezegun ];
2019-10-27 15:17:49 +00:00
checkPhase = ''
pytest tests/unit
'';
2018-04-06 17:59:50 +01:00
meta = with lib; {
description = "The Datadog Python library";
license = licenses.bsd3;
homepage = "https://github.com/DataDog/datadogpy";
};
}