1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytest
5}:
6
7buildPythonPackage rec {
8 pname = "asciitree";
9 version = "0.3.3";
10
11 src = fetchFromGitHub {
12 owner = "mbr";
13 repo = pname;
14 rev = version;
15 sha256 = "071wlpyi8pa262sj9xdy0zbj163z84dasxad363z3sfndqxw78h1";
16 };
17
18 checkInputs = [
19 pytest
20 ];
21
22 checkPhase = ''
23 pytest
24 '';
25
26 meta = with lib; {
27 description = "Draws ASCII trees";
28 homepage = "https://github.com/mbr/asciitree";
29 license = licenses.mit;
30 maintainers = [ maintainers.costrouc ];
31 };
32}