Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / rich-pixels / default.nix
blob7b77e59b6c9fafeba26df04b457a4f9f9e8bf48f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , poetry-core
6 , pytestCheckHook
7 , syrupy
8 , pillow
9 , rich
10 , pythonRelaxDepsHook
13 buildPythonPackage rec {
14   pname = "rich-pixels";
15   version = "2.2.0";
16   format = "pyproject";
18   src = fetchFromGitHub {
19     owner = "darrenburns";
20     repo = "rich-pixels";
21     rev = version;
22     hash = "sha256-fbpnHEfBPWLSYhgETqKbdmmzt7Lu/4oKgetjgNvv04c=";
23   };
25   patches = [
26     (fetchpatch {
27       name = "fix-version.patch";
28       url = "https://github.com/darrenburns/rich-pixels/commit/ff1cc3fef789321831f29e9bf282ae6b337eddb2.patch";
29       hash = "sha256-58ZHBNg1RCuOfuE034qF1SbAgoiWMNlSG3c5pCSLUyI=";
30     })
31   ];
33   nativeBuildInputs = [
34     poetry-core
35     pythonRelaxDepsHook
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40   ];
42   checkInputs = [
43     syrupy
44   ];
46   propagatedBuildInputs = [
47     pillow
48     rich
49   ];
51   pythonRelaxDeps = [
52     "pillow"
53   ];
55   pythonImportsCheck = [ "rich_pixels" ];
57   meta = with lib; {
58     description = "A Rich-compatible library for writing pixel images and ASCII art to the terminal";
59     homepage = "https://github.com/darrenburns/rich-pixels";
60     changelog = "https://github.com/darrenburns/rich-pixels/releases/tag/${src.rev}";
61     license = licenses.mit;
62     maintainers = with maintainers; [ figsoda ];
63   };