aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/fabulous/default.nix
blob: 6079f22020a2df41ffa4ec72aa2624908eb1b9ff (plain)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, pillow
, python
}:

buildPythonPackage rec {
  pname = "fabulous";
  version = "0.3.0";

  src = fetchFromGitHub {
    owner = "jart";
    repo = pname;
    rev = version;
    sha256 = "0yxdaz6yayp1a57kdb2i8q7kwwdlwy4a3d0lr012h2ji9m89c8q7";
  };

  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 ];
  };
}