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