python3Packages.blackrenderer: init at 0.6.0
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
fonttools,
|
||||
uharfbuzz,
|
||||
pycairo,
|
||||
pillow,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "blackrenderer";
|
||||
version = "0.6.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "BlackFoundryCom";
|
||||
repo = "black-renderer";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-b2W0M32Y4HUyxObjvh0yMUBe5gfcSDXnw1GfhW7hoZk=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
fonttools
|
||||
uharfbuzz
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
cairo = [ pycairo ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pillow
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Wants None existing fonts
|
||||
"Tests/test_mainprog.py"
|
||||
"Tests/test_glyph_render.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "blackrenderer" ];
|
||||
|
||||
meta = {
|
||||
description = "Renderer for OpenType COLR fonts, with multiple backends";
|
||||
homepage = "https://github.com/BlackFoundryCom/black-renderer";
|
||||
changelog = "https://github.com/BlackFoundryCom/black-renderer/releases/tag/v${version}";
|
||||
license = lib.licenses.asl20;
|
||||
mainProgram = "blackrenderer";
|
||||
maintainers = with lib.maintainers; [ jopejoe1 ];
|
||||
};
|
||||
}
|
||||
@@ -1654,6 +1654,8 @@ self: super: with self; {
|
||||
|
||||
black-macchiato = callPackage ../development/python-modules/black-macchiato { };
|
||||
|
||||
blackrenderer = callPackage ../development/python-modules/blackrenderer { };
|
||||
|
||||
bleach = callPackage ../development/python-modules/bleach { };
|
||||
|
||||
bleach-allowlist = callPackage ../development/python-modules/bleach-allowlist { };
|
||||
|
||||
Reference in New Issue
Block a user