2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, nose }:
|
2019-06-15 08:31:42 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
buildPythonPackage {
|
2019-06-15 08:31:42 +00:00
|
|
|
pname = "ptable";
|
|
|
|
version = "unstable-2019-06-14";
|
|
|
|
|
|
|
|
# https://github.com/kxxoling/PTable/issues/27
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kxxoling";
|
|
|
|
repo = "PTable";
|
|
|
|
rev = "bcfdb92811ae1f39e1065f31544710bf87d3bc21";
|
|
|
|
sha256 = "1cj314rp6irlvr0a2c4xffsm2idsb0hzwr38vzz6z3kbhphcb63i";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests --with-coverage --cover-package=prettytable --cover-min-percentage=75
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-06-15 08:31:42 +00:00
|
|
|
homepage = "https://github.com/kxxoling/PTable";
|
|
|
|
description = "A simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.mmahut ];
|
|
|
|
};
|
|
|
|
}
|