bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
52 lines
1 KiB
Nix
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 ];
|
|
};
|
|
}
|