nixpkgs/pkgs/development/python-modules/ptable/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

27 lines
814 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, nose }:
buildPythonPackage {
pname = "ptable";
version = "unstable-2019-06-14";
# 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 = "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 ];
};
}