depot/third_party/nixpkgs/pkgs/development/python-modules/tabulate/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

43 lines
794 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools-scm,
setuptools,
wcwidth,
pytestCheckHook,
}:
buildPythonPackage rec {
version = "0.9.0";
pname = "tabulate";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-AJWxK/WWbeUpwP6x+ghnFnGzNo7sd9fverEUviwGizw=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
optional-dependencies = {
widechars = [ wcwidth ];
};
nativeCheckInputs = [
pytestCheckHook
] ++ lib.flatten (builtins.attrValues optional-dependencies);
meta = {
description = "Pretty-print tabular data";
mainProgram = "tabulate";
homepage = "https://github.com/astanin/python-tabulate";
license = lib.licenses.mit;
};
}