nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 54 lines 938 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flit-core 5, dufte 6, matplotlib 7, numpy 8, pipdate 9, tqdm 10, rich 11, pytestCheckHook 12, pythonOlder 13}: 14 15buildPythonPackage rec { 16 pname = "perfplot"; 17 version = "0.10.1"; 18 format = "pyproject"; 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "nschloe"; 23 repo = pname; 24 rev = "v${version}"; 25 sha256 = "sha256-5qZolEJWjhqk1JakcGBWZ1hxeP1cLqcB7IZ3ufjOC/o="; 26 }; 27 28 nativeBuildInputs = [ 29 flit-core 30 ]; 31 32 propagatedBuildInputs = [ 33 dufte 34 matplotlib 35 numpy 36 pipdate 37 rich 38 tqdm 39 ]; 40 41 checkInputs = [ 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ "perfplot" ]; 46 47 meta = with lib; { 48 description = "Performance plots for Python code snippets"; 49 homepage = "https://github.com/nschloe/perfplot"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ costrouc ]; 52 broken = true; # missing matplotx dependency 53 }; 54}