1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 poetry-core, 6 coloraide, 7 humanize, 8 multimethod, 9 platformdirs, 10 rich, 11 sqlparse, 12 typing-extensions, 13 rgbxy ? null, 14}: 15let 16 version = "0.8.0"; 17in 18buildPythonPackage { 19 pname = "rich-tables"; 20 inherit version; 21 pyproject = true; 22 23 src = fetchPypi { 24 pname = "rich_tables"; 25 inherit version; 26 hash = "sha256-MN8QH6kLyogbcQ0VE9U034cwSFnaFDB2/Rnvy1DYyl4="; 27 }; 28 29 build-system = [ 30 poetry-core 31 ]; 32 33 dependencies = [ 34 coloraide 35 humanize 36 multimethod 37 platformdirs 38 rich 39 sqlparse 40 typing-extensions 41 ]; 42 43 optional-dependencies = { 44 hue = [ 45 rgbxy 46 ]; 47 }; 48 49 pythonRelaxDeps = [ 50 "multimethod" 51 ]; 52 53 pythonImportsCheck = [ 54 "rich_tables" 55 ]; 56 57 meta = { 58 description = "Ready-made rich tables for various purposes"; 59 homepage = "https://pypi.org/project/rich-tables/"; 60 license = lib.licenses.mit; 61 maintainers = [ 62 lib.maintainers._9999years 63 ]; 64 mainProgram = "table"; 65 }; 66}