Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / rich-pixels / default.nix
blob9e40b4b52fcfb2d408567419c844b5939f7d78ea
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , pytestCheckHook
6 , syrupy
7 , pillow
8 , rich
9 , pythonRelaxDepsHook
12 buildPythonPackage rec {
13   pname = "rich-pixels";
14   version = "2.1.1";
15   format = "pyproject";
17   src = fetchFromGitHub {
18     owner = "darrenburns";
19     repo = "rich-pixels";
20     rev = version;
21     hash = "sha256-zI6jtEdmBAEGxyASo/6fiHdzwzoSwXN7A5x1CmYS5qc=";
22   };
24   nativeBuildInputs = [
25     poetry-core
26     pythonRelaxDepsHook
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   checkInputs = [
34     syrupy
35   ];
37   propagatedBuildInputs = [
38     pillow
39     rich
40   ];
42   pythonRelaxDeps = [
43     "pillow"
44   ];
46   pythonImportsCheck = [ "rich_pixels" ];
48   meta = with lib; {
49     description = "A Rich-compatible library for writing pixel images and ASCII art to the terminal";
50     homepage = "https://github.com/darrenburns/rich-pixels";
51     changelog = "https://github.com/darrenburns/rich-pixels/releases/tag/${src.rev}";
52     # upstream has no license specified
53     # https://github.com/darrenburns/rich-pixels/issues/11
54     license = licenses.unfree;
55     maintainers = with maintainers; [ figsoda ];
56   };