linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / rich / default.nix
blob64739b3c65c6287107082bd7e2cc0eac0581f0ba
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , CommonMark
6 , colorama
7 , dataclasses
8 , ipywidgets
9 , poetry
10 , pygments
11 , typing-extensions
12 , pytestCheckHook
15 buildPythonPackage rec {
16   pname = "rich";
17   version = "9.10.0";
19   # tests not included in pypi tarball
20   src = fetchFromGitHub {
21     owner = "willmcgugan";
22     repo = pname;
23     rev = "v${version}";
24     sha256 = "1m1rswg16r4pxv7504nk7lpyxrwf16xw4w55rs3jisryx14ccic6";
25   };
26   format = "pyproject";
28   nativeBuildInputs = [ poetry ];
29   propagatedBuildInputs = [
30     CommonMark
31     colorama
32     ipywidgets
33     pygments
34     typing-extensions
35   ] ++ lib.optional (pythonOlder "3.7") dataclasses;
37   checkInputs = [ pytestCheckHook ];
38   pythonImportsCheck = [ "rich" ];
40   meta = with lib; {
41     description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal";
42     homepage = "https://github.com/willmcgugan/rich";
43     license = licenses.mit;
44     maintainers = with maintainers; [ ris ];
45   };