7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
unstableGitUpdater,
|
|
setuptools,
|
|
setuptools-scm,
|
|
fonttools,
|
|
ufomerge,
|
|
fontmake,
|
|
glyphslib,
|
|
ttfautohint-py,
|
|
ufo2ft,
|
|
gftools,
|
|
fontbakery,
|
|
diffenator2,
|
|
chevron,
|
|
sh,
|
|
ninja,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "notobuilder";
|
|
version = "0-unstable-2024-08-03";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "notofonts";
|
|
repo = "notobuilder";
|
|
rev = "d7bcfc8e5c5ee9b273e7b1eeb2dd6d619da68c33";
|
|
hash = "sha256-1tdHbJixd1s1grGh0enqXhp+u5TEic6/W88X/f8vagM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace Lib/notobuilder/__main__.py \
|
|
--replace-fail '"ninja"' '"${lib.getExe ninja}"'
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
fonttools
|
|
ufomerge
|
|
fontmake
|
|
glyphslib
|
|
ttfautohint-py
|
|
ufo2ft
|
|
gftools
|
|
fontbakery
|
|
diffenator2
|
|
chevron
|
|
sh
|
|
] ++ gftools.optional-dependencies.qa;
|
|
|
|
pythonImportsCheck = [
|
|
"notobuilder"
|
|
"notoqa"
|
|
];
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = {
|
|
description = "Python module for building Noto fonts";
|
|
homepage = "https://github.com/notofonts/notobuilder";
|
|
license = lib.licenses.unfree;
|
|
maintainers = with lib.maintainers; [ jopejoe1 ];
|
|
};
|
|
}
|