depot/third_party/nixpkgs/pkgs/development/python-modules/rich-pixels/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

52 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
hatchling,
pillow,
pytestCheckHook,
pythonOlder,
pythonRelaxDepsHook,
rich,
syrupy,
}:
buildPythonPackage rec {
pname = "rich-pixels";
version = "3.0.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "darrenburns";
repo = "rich-pixels";
rev = "refs/tags/${version}";
hash = "sha256-Sqs0DOyxJBfZmm/SVSTMSmaaeRlusiSp6VBnJjKYjgQ=";
};
pythonRelaxDeps = [ "pillow" ];
build-system = [ hatchling ];
dependencies = [
pillow
rich
];
nativeCheckInputs = [
pytestCheckHook
syrupy
];
pythonImportsCheck = [ "rich_pixels" ];
meta = with lib; {
description = "Rich-compatible library for writing pixel images and ASCII art to the terminal";
homepage = "https://github.com/darrenburns/rich-pixels";
changelog = "https://github.com/darrenburns/rich-pixels/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}