Files
nixpkgs/pkgs/by-name/no/nototools/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

83 lines
1.4 KiB
Nix

{
fetchFromGitHub,
lib,
bash,
python3Packages,
}:
python3Packages.buildPythonApplication rec {
pname = "nototools";
version = "0.3.2";
pyproject = true;
src = fetchFromGitHub {
owner = "googlefonts";
repo = "nototools";
tag = "v${version}";
sha256 = "sha256-0se0YcnhDwwMbt2C4hep0T/JEidHfFRUnm2Sy7qr2uk=";
};
build-system = with python3Packages; [
setuptools
setuptools-scm
];
pythonRemoveDeps = [
# https://github.com/notofonts/nototools/pull/901
"typed-ast"
];
dependencies = with python3Packages; [
afdko
appdirs
attrs
booleanoperations
brotlipy
click
defcon
fontmath
fontparts
fontpens
fonttools
lxml
mutatormath
pathspec
psautohint
pyclipper
pytz
regex
scour
toml
ufonormalizer
ufoprocessor
unicodedata2
zopfli
];
nativeCheckInputs = [
python3Packages.pillow
python3Packages.six
bash
];
checkPhase = ''
patchShebangs tests/
cd tests
rm gpos_diff_test.py # needs ttxn?
./run_tests
'';
postInstall = ''
cp -r third_party $out
'';
pythonImportsCheck = [ "nototools" ];
meta = with lib; {
description = "Noto fonts support tools and scripts plus web site generation";
homepage = "https://github.com/googlefonts/nototools";
license = licenses.asl20;
maintainers = [ ];
};
}