about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pixcat/default.nix
blob: b5629cebb937ee776cfeb4dec46fe3f350b8b66b (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
{ lib
, buildPythonPackage
, fetchPypi
, blessed
, docopt
, pillow
, requests
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pixcat";
  version = "0.1.4";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "657c8fe04513caecccd6086b347aa4b85db6b4c0f761b162cb9cd789abe7abb6";
  };

  propagatedBuildInputs = [
    blessed
    docopt
    pillow
    requests
  ];

  pythonImportsCheck = [ "pixcat" ];

  meta = with lib; {
    description = "Display images on a kitty terminal with optional resizing";
    homepage = "https://github.com/mirukan/pixcat";
    license = licenses.lgpl3;
    maintainers = [ maintainers.tilcreator ];
  };
}