at master 656 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "ansi"; 11 version = "0.3.7"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "tehmaze"; 16 repo = "ansi"; 17 tag = "ansi-${version}"; 18 hash = "sha256-PmgB1glksu4roQeZ1o7uilMJNm9xaYqw680N2z+tUUM="; 19 }; 20 21 nativeBuildInputs = [ setuptools ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ 26 "ansi.colour" 27 "ansi.color" 28 ]; 29 30 meta = with lib; { 31 description = "ANSI cursor movement and graphics"; 32 homepage = "https://github.com/tehmaze/ansi/"; 33 license = licenses.mit; 34 }; 35}