Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 52 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, CommonMark 6, colorama 7, dataclasses 8, ipywidgets 9, poetry-core 10, pygments 11, typing-extensions 12, pytestCheckHook 13}: 14 15buildPythonPackage rec { 16 pname = "rich"; 17 version = "10.1.0"; 18 format = "pyproject"; 19 disabled = pythonOlder "3.6"; 20 21 src = fetchFromGitHub { 22 owner = "willmcgugan"; 23 repo = pname; 24 rev = "v${version}"; 25 sha256 = "sha256-HH+k9uiK34yoqu83rknCIe2DpoqJRHkcqABuj8zjzqs="; 26 }; 27 28 nativeBuildInputs = [ poetry-core ]; 29 30 propagatedBuildInputs = [ 31 CommonMark 32 colorama 33 ipywidgets 34 pygments 35 typing-extensions 36 ] ++ lib.optional (pythonOlder "3.7") [ 37 dataclasses 38 ]; 39 40 checkInputs = [ 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ "rich" ]; 45 46 meta = with lib; { 47 description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"; 48 homepage = "https://github.com/willmcgugan/rich"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ ris ]; 51 }; 52}