nixpkgs/pkgs/development/python-modules/tabulate/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
868 B
Nix
Raw Normal View History

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