2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
|
|
|
, syrupy
|
|
|
|
, pillow
|
|
|
|
, rich
|
2023-10-09 19:29:22 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rich-pixels";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.2.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "darrenburns";
|
|
|
|
repo = "rich-pixels";
|
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-fbpnHEfBPWLSYhgETqKbdmmzt7Lu/4oKgetjgNvv04c=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2023-10-09 19:29:22 +00:00
|
|
|
pythonRelaxDepsHook
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
syrupy
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pillow
|
|
|
|
rich
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"pillow"
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonImportsCheck = [ "rich_pixels" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A 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}";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = licenses.mit;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|