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
|
2021-06-03 12:09:11 +02:00
|
|
|
, 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";
|
2021-09-13 14:53:24 +02:00
|
|
|
version = "0.2.16";
|
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}";
|
2021-09-13 14:53:24 +02:00
|
|
|
sha256 = "14rrdamkmhrykff8ln07fq9cm8zwj3k113lzwjcy0lgz23g51jyl";
|
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
|
|
|
'';
|
|
|
|
|
2021-06-03 12:09:11 +02:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-08-25 22:05:45 +02:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|