about summary refs log tree commit diff
path: root/pkgs/development/python-modules/fabulous/default.nix
blob: eba74ab121beeb7d1ef80e2e7327885b2a1dea88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchFromGitHub
, pillow
, python
}:

buildPythonPackage rec {
  pname = "fabulous";
  version = "0.4.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "jart";
    repo = pname;
    rev = version;
    hash = "sha256-hchlxuB5QP+VxCx+QZ2739/mR5SQmYyE+9kXLKJ2ij4=";
  };

  patches = [
    ./relative_import.patch
  ];

  propagatedBuildInputs = [
    pillow
  ];

  checkPhase = ''
    for i in tests/*.py; do
      ${python.interpreter} $i
    done
  '';

  meta = with lib; {
    description = "Make the output of terminal applications look fabulous";
    homepage = "https://jart.github.io/fabulous";
    license = licenses.asl20;
    maintainers = [ maintainers.symphorien ];
  };
}