python3Packages.rich: init at 8.0.0

This commit is contained in:
Robert Scott 2020-10-10 19:13:12 +01:00
parent b5b8839e0a
commit 5b66067eb9
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, CommonMark
, colorama
, dataclasses
, ipywidgets
, poetry
, pygments
, typing-extensions
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "rich";
version = "8.0.0";
# tests not included in pypi tarball
src = fetchFromGitHub {
owner = "willmcgugan";
repo = pname;
rev = "v${version}";
sha256 = "0hv27b22x7dbx1i7nzsd8y8fymmvdak2hcx9242jwk4c1a7jr151";
};
format = "pyproject";
nativeBuildInputs = [ poetry ];
propagatedBuildInputs = [
CommonMark
colorama
ipywidgets
pygments
typing-extensions
] ++ stdenv.lib.optional (pythonOlder "3.7") dataclasses;
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "rich" ];
meta = with stdenv.lib; {
description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal";
homepage = "https://github.com/willmcgugan/rich";
license = licenses.mit;
maintainers = with maintainers; [ ris ];
};
}

View File

@ -6178,6 +6178,8 @@ in {
rhpl = disabledIf isPy3k (callPackage ../development/python-modules/rhpl { }); rhpl = disabledIf isPy3k (callPackage ../development/python-modules/rhpl { });
rich = callPackage ../development/python-modules/rich { };
rig = callPackage ../development/python-modules/rig { }; rig = callPackage ../development/python-modules/rig { };
ripser = callPackage ../development/python-modules/ripser { }; ripser = callPackage ../development/python-modules/ripser { };