2020-09-25 04:45:31 +00:00
|
|
|
{ fetchFromGitHub, lib, buildPythonPackage, pythonOlder
|
2022-09-09 14:08:57 +00:00
|
|
|
, afdko, appdirs, attrs, booleanoperations, brotlipy, click
|
2021-03-09 03:18:52 +00:00
|
|
|
, defcon, fontmath, fontparts, fontpens, fonttools, lxml
|
2020-09-25 04:45:31 +00:00
|
|
|
, mutatormath, pathspec, psautohint, pyclipper, pytz, regex, scour
|
|
|
|
, toml, typed-ast, ufonormalizer, ufoprocessor, unicodedata2, zopfli
|
2021-06-04 09:07:49 +00:00
|
|
|
, pillow, six, bash, setuptools-scm }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nototools";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.2.19";
|
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}";
|
|
|
|
sha256 = "sha256-anAz+5PIhGhpFunjV2EVk2CrbXq2U0e+LINYUnS0IKU=";
|
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
|
|
|
};
|
|
|
|
}
|