2020-08-25 22:05:45 +02:00
|
|
|
{ fetchFromGitHub, lib, buildPythonPackage, pythonOlder
|
|
|
|
, afdko, appdirs, attrs, black, booleanoperations, brotlipy, click
|
2021-03-03 13:50:11 +01:00
|
|
|
, defcon, fontmath, fontparts, fontpens, fonttools, lxml
|
2020-08-25 22:05:45 +02:00
|
|
|
, mutatormath, pathspec, psautohint, pyclipper, pytz, regex, scour
|
|
|
|
, toml, typed-ast, ufonormalizer, ufoprocessor, unicodedata2, zopfli
|
|
|
|
, pillow, six, bash, setuptools_scm }:
|
2017-11-22 06:19:48 +01:00
|
|
|
|
2019-10-29 10:38:59 +01:00
|
|
|
buildPythonPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "nototools";
|
2020-09-17 19:55:20 +02:00
|
|
|
version = "0.2.13";
|
2020-08-25 22:05:45 +02:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-11-22 06:19:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-08-29 17:23:10 +02:00
|
|
|
owner = "googlefonts";
|
2017-11-22 06:19:48 +01:00
|
|
|
repo = "nototools";
|
2020-08-25 22:05:45 +02:00
|
|
|
rev = "v${version}";
|
2020-09-17 19:55:20 +02:00
|
|
|
sha256 = "0ggp65xgkf9y7jamncm65lkm84wapsa47abf133pcb702875v8jz";
|
2017-11-22 06:19:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-08-25 22:05:45 +02:00
|
|
|
sed -i 's/use_scm_version=.*,/version="${version}",/' setup.py
|
2017-11-22 06:19:48 +01:00
|
|
|
'';
|
|
|
|
|
2020-08-25 22:05:45 +02:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
afdko
|
|
|
|
appdirs
|
|
|
|
attrs
|
|
|
|
black
|
|
|
|
booleanoperations
|
|
|
|
brotlipy
|
|
|
|
click
|
|
|
|
defcon
|
|
|
|
fontmath
|
|
|
|
fontparts
|
|
|
|
fontpens
|
|
|
|
fonttools
|
|
|
|
lxml
|
|
|
|
mutatormath
|
|
|
|
pathspec
|
|
|
|
psautohint
|
|
|
|
pyclipper
|
|
|
|
pytz
|
|
|
|
regex
|
|
|
|
scour
|
|
|
|
toml
|
|
|
|
typed-ast
|
|
|
|
ufonormalizer
|
|
|
|
ufoprocessor
|
|
|
|
unicodedata2
|
|
|
|
zopfli
|
|
|
|
];
|
|
|
|
|
2019-10-29 10:38:59 +01:00
|
|
|
checkInputs = [
|
2020-08-25 22:05:45 +02:00
|
|
|
pillow
|
|
|
|
six
|
|
|
|
bash
|
2019-10-29 10:38:59 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
patchShebangs tests/
|
|
|
|
cd tests
|
|
|
|
rm gpos_diff_test.py # needs ttxn?
|
|
|
|
./run_tests
|
|
|
|
'';
|
|
|
|
|
2017-11-22 06:19:48 +01:00
|
|
|
postInstall = ''
|
|
|
|
cp -r third_party $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Noto fonts support tools and scripts plus web site generation";
|
|
|
|
license = lib.licenses.asl20;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/googlefonts/nototools";
|
2017-11-22 06:19:48 +01:00
|
|
|
};
|
|
|
|
}
|