1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatch-vcs, 6 hatchling, 7 pytest-lazy-fixture, 8 pytestCheckHook, 9 pythonOlder, 10 wcwidth, 11}: 12 13buildPythonPackage rec { 14 pname = "prettytable"; 15 version = "3.9.0"; 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-yIO4eO2VdOnUt9qoNQOeq/c0os2LQ3mqAkCOIuoGpyg="; 25 }; 26 27 nativeBuildInputs = [ 28 hatch-vcs 29 hatchling 30 ]; 31 32 propagatedBuildInputs = [ wcwidth ]; 33 34 nativeCheckInputs = [ 35 pytest-lazy-fixture 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 = with maintainers; [ ]; 47 }; 48}