depot/third_party/nixpkgs/pkgs/development/python-modules/rich-pixels/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

50 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pillow,
rich,
pytestCheckHook,
pythonOlder,
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/${lib.removePrefix "refs/tags/" src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}