1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage {
10 pname = "ptable";
11 version = "unstable-2019-06-14";
12 pyproject = true;
13
14 # https://github.com/kxxoling/PTable/issues/27
15 src = fetchFromGitHub {
16 owner = "kxxoling";
17 repo = "PTable";
18 rev = "bcfdb92811ae1f39e1065f31544710bf87d3bc21";
19 sha256 = "1cj314rp6irlvr0a2c4xffsm2idsb0hzwr38vzz6z3kbhphcb63i";
20 };
21
22 build-system = [ setuptools ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 meta = with lib; {
27 homepage = "https://github.com/kxxoling/PTable";
28 description = "Simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables";
29 mainProgram = "ptable";
30 license = licenses.bsd3;
31 maintainers = [ maintainers.mmahut ];
32 };
33}