Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 45 lines 773 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, matplotlib 5, numpy 6, pipdate 7, tqdm 8, pytest 9, isPy27 10}: 11 12buildPythonPackage rec { 13 pname = "perfplot"; 14 version = "0.5.0"; 15 disabled = isPy27; 16 17 src = fetchFromGitHub { 18 owner = "nschloe"; 19 repo = "perfplot"; 20 rev = "v${version}"; 21 sha256 = "16aj5ryjic1k3qn8xhpw6crczvxcs691vs5kv4pvb1zdx69g1xbv"; 22 }; 23 24 propagatedBuildInputs = [ 25 matplotlib 26 numpy 27 pipdate 28 tqdm 29 ]; 30 31 checkInputs = [ 32 pytest 33 ]; 34 35 checkPhase = '' 36 HOME=$(mktemp -d) pytest test/perfplot_test.py 37 ''; 38 39 meta = with lib; { 40 description = "Performance plots for Python code snippets"; 41 homepage = https://github.com/nschloe/perfplot; 42 license = licenses.mit; 43 maintainers = [ maintainers.costrouc ]; 44 }; 45}