depot/third_party/nixpkgs/pkgs/development/python-modules/notobuilder/default.nix

72 lines
1.3 KiB
Nix
Raw Normal View History

{
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 ];
};
}