1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/terminaltables3/default.nix
Fabian Affolter ca49d19831 python312Packages.terminaltables3: init at 4.0.0-unstable-2024-07-21
Generate simple tables in terminals from a nested list of strings

https://github.com/matthewdeanmartin/terminaltables3
2024-11-09 08:31:26 +01:00

59 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
colorama,
colorclass,
fetchFromGitHub,
poetry-core,
pytest-cov-stub,
pytest-xdist,
pytestCheckHook,
pythonOlder,
termcolor,
}:
buildPythonPackage rec {
pname = "terminaltables3";
version = "4.0.0-unstable-2024-07-21";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "matthewdeanmartin";
repo = "terminaltables3";
#rev = "refs/tags/v${version}";
rev = "f1c465b36eb9b91a984d8864b21376e7c37075b8";
hash = "sha256-UcEovh1Eb4QNPwLGDjCphPlJSSkOdhCJ2fK3tuSWOTc=";
};
build-system = [ poetry-core ];
nativeCheckInputs = [
colorama
colorclass
pytest-cov-stub
pytest-xdist
pytestCheckHook
termcolor
];
pythonImportsCheck = [ "terminaltables3" ];
disabledTests = [
# Tests are comparing CLI output
"test_color"
"test_colors"
"test_height"
"test_width"
];
meta = {
description = "Generate simple tables in terminals from a nested list of strings";
homepage = "https://github.com/matthewdeanmartin/terminaltables3";
changelog = "https://github.com/matthewdeanmartin/terminaltables3/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}