Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatch-vcs, 6 hatchling, 7 pytest-lazy-fixtures, 8 pytestCheckHook, 9 pythonOlder, 10 wcwidth, 11}: 12 13buildPythonPackage rec { 14 pname = "prettytable"; 15 version = "3.10.1"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "jazzband"; 22 repo = "prettytable"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-S23nUCA2WTxnCKKKFrtN9HYjP0SHUBPPsVNAc4SYlVg="; 25 }; 26 27 nativeBuildInputs = [ 28 hatch-vcs 29 hatchling 30 ]; 31 32 propagatedBuildInputs = [ wcwidth ]; 33 34 nativeCheckInputs = [ 35 pytest-lazy-fixtures 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "prettytable" ]; 40 41 meta = with lib; { 42 description = "Display tabular data in a visually appealing ASCII table format"; 43 homepage = "https://github.com/jazzband/prettytable"; 44 changelog = "https://github.com/jazzband/prettytable/releases/tag/${version}"; 45 license = licenses.bsd3; 46 maintainers = [ ]; 47 }; 48}