1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, dufte 5, matplotlib 6, numpy 7, pipdate 8, tqdm 9, rich 10, pytestCheckHook 11, pythonOlder 12}: 13 14buildPythonPackage rec { 15 pname = "perfplot"; 16 version = "0.9.8"; 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "nschloe"; 21 repo = pname; 22 rev = version; 23 sha256 = "17dpgd27ik7ka7xpk3mj3anbjj62lwygy1vxlmrmk8xbhrqkim8d"; 24 }; 25 format = "pyproject"; 26 27 propagatedBuildInputs = [ 28 dufte 29 matplotlib 30 numpy 31 pipdate 32 rich 33 tqdm 34 ]; 35 36 checkInputs = [ 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ "perfplot" ]; 41 42 meta = with lib; { 43 description = "Performance plots for Python code snippets"; 44 homepage = "https://github.com/nschloe/perfplot"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ costrouc ]; 47 }; 48}