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