1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 hatch-vcs, 6 hatchling, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "termcolor"; 12 version = "3.1.0"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-am3X++5YGQnu7Gp1bP8df3w3YGOxTkopjcSYAwnlWXA="; 18 }; 19 20 build-system = [ 21 hatch-vcs 22 hatchling 23 ]; 24 25 pythonImportsCheck = [ "termcolor" ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 meta = with lib; { 30 changelog = "https://github.com/termcolor/termcolor/releases/tag/${version}"; 31 description = "ANSI color formatting for output in terminal"; 32 homepage = "https://github.com/termcolor/termcolor"; 33 license = licenses.mit; 34 }; 35}