1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytest,
6}:
7
8buildPythonPackage rec {
9 pname = "ansiconv";
10 version = "1.0.0";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "ansible";
15 repo = "ansiconv";
16 rev = "v${version}";
17 sha256 = "0ljfpl8x069arzginvpi1v6hlaq4x2qpjqj01qds2ylz33scq8r4";
18 };
19
20 nativeCheckInputs = [ pytest ];
21
22 meta = with lib; {
23 description = "Module for converting ANSI coded text and converts it to either plain text or HTML";
24 homepage = "https://github.com/ansible/ansiconv";
25 license = licenses.mit;
26 maintainers = with maintainers; [ psyanticy ];
27 };
28}