mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 19:43:02 +08:00
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
49 lines
983 B
Nix
49 lines
983 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatch-vcs,
|
|
hatchling,
|
|
pytest-lazy-fixtures,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
wcwidth,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "prettytable";
|
|
version = "3.10.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jazzband";
|
|
repo = "prettytable";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-S23nUCA2WTxnCKKKFrtN9HYjP0SHUBPPsVNAc4SYlVg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [ wcwidth ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-lazy-fixtures
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "prettytable" ];
|
|
|
|
meta = with lib; {
|
|
description = "Display tabular data in a visually appealing ASCII table format";
|
|
homepage = "https://github.com/jazzband/prettytable";
|
|
changelog = "https://github.com/jazzband/prettytable/releases/tag/${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|