about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/misc/catppuccin-catwalk/default.nix
blob: fc48fc83374b9219a78e89314a9a7a7b11649f7b (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
41
{ lib
, fetchPypi
, python3
,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "catppuccin-catwalk";
  version = "0.4.0";
  format = "pyproject";

  src = fetchPypi {
    inherit version;
    pname = "catppuccin_catwalk";
    hash = "sha256-5TAw5H3soxe9vLhfj1qs8uMr4ybrHlCj4zdsMzvPo6s=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace 'Pillow = "^' 'Pillow = ">='
  '';

  nativeBuildInputs = with python3.pkgs; [
    poetry-core
  ];

  propagatedBuildInputs = with python3.pkgs; [
    pillow
  ];

  pythonImports = [
    "catwalk"
  ];

  meta = with lib; {
    homepage = "https://github.com/catppuccin/toolbox";
    description = "A CLI for Catppuccin that takes in four showcase images and displays them all at once";
    license = licenses.mit;
    maintainers = with maintainers; [ ryanccn ];
  };
}