2022-04-27 09:35:20 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, pythonOlder
|
2020-09-25 04:45:31 +00:00
|
|
|
, fonttools, lxml, fs, unicodedata2
|
|
|
|
, defcon, fontpens, fontmath, booleanoperations
|
2021-06-04 09:07:49 +00:00
|
|
|
, pytest, setuptools-scm
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fontParts";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.11.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-He3BAIWxwDIM80ixmYjyAHlwDK9bBe/qS8P4+TVEkEg=";
|
2020-09-25 04:45:31 +00:00
|
|
|
extension = "zip";
|
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
booleanoperations
|
|
|
|
fonttools
|
|
|
|
unicodedata2 # fonttools[unicode] extra
|
|
|
|
lxml # fonttools[lxml] extra
|
|
|
|
fs # fonttools[ufo] extra
|
|
|
|
defcon
|
|
|
|
fontpens # defcon[pens] extra
|
|
|
|
fontmath
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2021-02-16 17:04:54 +00:00
|
|
|
runHook preCheck
|
2020-09-25 04:45:31 +00:00
|
|
|
${python.interpreter} Lib/fontParts/fontshell/test.py
|
2021-02-16 17:04:54 +00:00
|
|
|
runHook postCheck
|
2020-09-25 04:45:31 +00:00
|
|
|
'';
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An API for interacting with the parts of fonts during the font development process.";
|
|
|
|
homepage = "https://github.com/robotools/fontParts";
|
2022-06-16 17:23:12 +00:00
|
|
|
changelog = "https://github.com/robotools/fontParts/releases/tag/${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|