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