1{ lib, buildPythonPackage, fetchFromGitHub, nose }:
2
3buildPythonPackage {
4 pname = "ptable";
5 version = "unstable-2019-06-14";
6
7 # https://github.com/kxxoling/PTable/issues/27
8 src = fetchFromGitHub {
9 owner = "kxxoling";
10 repo = "PTable";
11 rev = "bcfdb92811ae1f39e1065f31544710bf87d3bc21";
12 sha256 = "1cj314rp6irlvr0a2c4xffsm2idsb0hzwr38vzz6z3kbhphcb63i";
13 };
14
15 nativeCheckInputs = [ nose ];
16
17 checkPhase = ''
18 nosetests --with-coverage --cover-package=prettytable --cover-min-percentage=75
19 '';
20
21 meta = with lib; {
22 homepage = "https://github.com/kxxoling/PTable";
23 description = "A simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables";
24 license = licenses.bsd3;
25 maintainers = [ maintainers.mmahut ];
26 };
27}