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