1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 08:34:50 +00:00
nixpkgs/pkgs/development/python-modules/datadog/default.nix

32 lines
779 B
Nix
Raw Normal View History

2020-08-17 05:27:13 +01:00
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, decorator, requests, simplejson, pillow, typing
, nose, mock, pytest, freezegun }:
buildPythonPackage rec {
pname = "datadog";
version = "0.39.0";
2018-10-30 15:42:37 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "b0ef69a27aad0e4412c1ac3e6894fa1b5741db735515c34dfe1606d8cf30e4e5";
};
2018-11-29 11:45:50 +00:00
postPatch = ''
find . -name '*.pyc' -exec rm {} \;
'';
2020-08-17 05:27:13 +01:00
propagatedBuildInputs = [ decorator requests simplejson pillow ]
++ lib.optionals (pythonOlder "3.5") [ typing ];
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";
};
}