depot/third_party/nixpkgs/pkgs/development/python-modules/ptable/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
874 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
nose,
}:
buildPythonPackage {
pname = "ptable";
version = "unstable-2019-06-14";
format = "setuptools";
# https://github.com/kxxoling/PTable/issues/27
src = fetchFromGitHub {
owner = "kxxoling";
repo = "PTable";
rev = "bcfdb92811ae1f39e1065f31544710bf87d3bc21";
sha256 = "1cj314rp6irlvr0a2c4xffsm2idsb0hzwr38vzz6z3kbhphcb63i";
};
nativeCheckInputs = [ nose ];
checkPhase = ''
nosetests --with-coverage --cover-package=prettytable --cover-min-percentage=75
'';
meta = with lib; {
homepage = "https://github.com/kxxoling/PTable";
description = "Simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables";
mainProgram = "ptable";
license = licenses.bsd3;
maintainers = [ maintainers.mmahut ];
};
}