2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
afdko,
|
|
|
|
appdirs,
|
|
|
|
attrs,
|
|
|
|
booleanoperations,
|
|
|
|
brotlipy,
|
|
|
|
click,
|
|
|
|
defcon,
|
|
|
|
fontmath,
|
|
|
|
fontparts,
|
|
|
|
fontpens,
|
|
|
|
fonttools,
|
|
|
|
lxml,
|
|
|
|
mutatormath,
|
|
|
|
pathspec,
|
|
|
|
psautohint,
|
|
|
|
pyclipper,
|
|
|
|
pytz,
|
|
|
|
regex,
|
|
|
|
scour,
|
|
|
|
toml,
|
|
|
|
typed-ast,
|
|
|
|
ufonormalizer,
|
|
|
|
ufoprocessor,
|
|
|
|
unicodedata2,
|
|
|
|
zopfli,
|
|
|
|
pillow,
|
|
|
|
six,
|
|
|
|
bash,
|
|
|
|
setuptools-scm,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nototools";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.2.20";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "googlefonts";
|
|
|
|
repo = "nototools";
|
2024-02-07 01:22:34 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
sha256 = "sha256-id4UhyWOFHrtmBZHhnaY2jHDIK0s7rcGBpg4QsBTLKs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-09-25 04:45:31 +00:00
|
|
|
sed -i 's/use_scm_version=.*,/version="${version}",/' setup.py
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
afdko
|
|
|
|
appdirs
|
|
|
|
attrs
|
|
|
|
booleanoperations
|
|
|
|
brotlipy
|
|
|
|
click
|
|
|
|
defcon
|
|
|
|
fontmath
|
|
|
|
fontparts
|
|
|
|
fontpens
|
|
|
|
fonttools
|
|
|
|
lxml
|
|
|
|
mutatormath
|
|
|
|
pathspec
|
|
|
|
psautohint
|
|
|
|
pyclipper
|
|
|
|
pytz
|
|
|
|
regex
|
|
|
|
scour
|
|
|
|
toml
|
|
|
|
typed-ast
|
|
|
|
ufonormalizer
|
|
|
|
ufoprocessor
|
|
|
|
unicodedata2
|
|
|
|
zopfli
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-09-25 04:45:31 +00:00
|
|
|
pillow
|
|
|
|
six
|
|
|
|
bash
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
patchShebangs tests/
|
|
|
|
cd tests
|
|
|
|
rm gpos_diff_test.py # needs ttxn?
|
|
|
|
./run_tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp -r third_party $out
|
|
|
|
'';
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Noto fonts support tools and scripts plus web site generation";
|
|
|
|
homepage = "https://github.com/googlefonts/nototools";
|
2022-09-09 14:08:57 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|