Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 hatch-vcs, 6 hatchling, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "termcolor"; 12 version = "2.4.0"; 13 format = "pyproject"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-qrnlYEfIrEHteY+jbYkqN6yms+kVnz4MJLxkqbOse3o="; 18 }; 19 20 nativeBuildInputs = [ 21 hatch-vcs 22 hatchling 23 ]; 24 25 pythonImportsCheck = [ "termcolor" ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 meta = with lib; { 30 description = "ANSI color formatting for output in terminal"; 31 homepage = "https://github.com/termcolor/termcolor"; 32 license = licenses.mit; 33 }; 34}