depot/third_party/nixpkgs/pkgs/development/python-modules/tabulate/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

42 lines
823 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
];
passthru.optional-dependencies = {
widechars = [ wcwidth ];
};
nativeCheckInputs = [
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
meta = {
description = "Pretty-print tabular data";
homepage = "https://github.com/astanin/python-tabulate";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fridh ];
};
}