Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.0 kB view raw
1{ stdenv 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, CommonMark 6, colorama 7, dataclasses 8, ipywidgets 9, poetry 10, pygments 11, typing-extensions 12, pytestCheckHook 13}: 14 15buildPythonPackage rec { 16 pname = "rich"; 17 version = "8.0.0"; 18 19 # tests not included in pypi tarball 20 src = fetchFromGitHub { 21 owner = "willmcgugan"; 22 repo = pname; 23 rev = "v${version}"; 24 sha256 = "0hv27b22x7dbx1i7nzsd8y8fymmvdak2hcx9242jwk4c1a7jr151"; 25 }; 26 format = "pyproject"; 27 28 nativeBuildInputs = [ poetry ]; 29 propagatedBuildInputs = [ 30 CommonMark 31 colorama 32 ipywidgets 33 pygments 34 typing-extensions 35 ] ++ stdenv.lib.optional (pythonOlder "3.7") dataclasses; 36 37 checkInputs = [ pytestCheckHook ]; 38 pythonImportsCheck = [ "rich" ]; 39 40 meta = with stdenv.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 }; 46}