Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 31 lines 779 B view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder 2, decorator, requests, simplejson, pillow, typing 3, nose, mock, pytest, freezegun }: 4 5buildPythonPackage rec { 6 pname = "datadog"; 7 version = "0.38.0"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "401cd1dcf2d5de05786016a1c790bff28d1428d12ae1dbe11485f9cb5502939b"; 12 }; 13 14 postPatch = '' 15 find . -name '*.pyc' -exec rm {} \; 16 ''; 17 18 propagatedBuildInputs = [ decorator requests simplejson pillow ] 19 ++ lib.optionals (pythonOlder "3.5") [ typing ]; 20 21 checkInputs = [ nose mock pytest freezegun ]; 22 checkPhase = '' 23 pytest tests/unit 24 ''; 25 26 meta = with lib; { 27 description = "The Datadog Python library"; 28 license = licenses.bsd3; 29 homepage = "https://github.com/DataDog/datadogpy"; 30 }; 31}