1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 hatch-vcs,
8 hatchling,
9
10 # dependencies
11 wcwidth,
12
13 # tests
14 coverage,
15 pytest-cov-stub,
16 pytest-lazy-fixtures,
17 pytestCheckHook,
18}:
19
20buildPythonPackage rec {
21 pname = "prettytable";
22 version = "3.16.0";
23 pyproject = true;
24
25 src = fetchFromGitHub {
26 owner = "jazzband";
27 repo = "prettytable";
28 tag = version;
29 hash = "sha256-2x7Q1HiCACJfbgWkczy3dS+dkE1fUqJK4LtqB9f3CzY=";
30 };
31
32 build-system = [
33 hatch-vcs
34 hatchling
35 ];
36
37 dependencies = [ wcwidth ];
38
39 nativeCheckInputs = [
40 coverage
41 pytest-cov-stub
42 pytest-lazy-fixtures
43 pytestCheckHook
44 ];
45
46 pythonImportsCheck = [ "prettytable" ];
47
48 meta = {
49 description = "Display tabular data in a visually appealing ASCII table format";
50 homepage = "https://github.com/jazzband/prettytable";
51 changelog = "https://github.com/jazzband/prettytable/releases/tag/${version}";
52 license = lib.licenses.bsd3;
53 maintainers = with lib.maintainers; [ GaetanLepage ];
54 };
55}