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