python312Packages.fontbakery: refactor

- disable on unsupported Python releases
- update ordering for easier reviewing
This commit is contained in:
Fabian Affolter 2024-08-05 08:28:47 +02:00
parent 5e1ec7c5f5
commit 7e26005c71

View File

@ -1,59 +1,76 @@
{
lib,
buildPythonPackage,
callPackage,
fetchPypi,
axisregistry,
babelfont,
beautifulsoup4,
beziers,
buildPythonPackage,
callPackage,
cmarkgfm,
collidoscope,
defcon,
dehinter,
fonttools,
fetchPypi,
font-v,
fonttools,
freetype-py,
gflanguages,
gfsubsets,
git,
glyphsets,
lxml,
installShellFiles,
jinja2,
lxml,
munkres,
opentypespec,
ots-python,
packaging,
pip-api,
protobuf,
pytestCheckHook,
pytest-xdist,
pytestCheckHook,
pythonOlder,
pyyaml,
requests,
requests-mock,
requests,
rich,
setuptools,
setuptools-scm,
setuptools,
shaperglot,
stringbrewer,
toml,
unicodedata2,
ufo2ft,
ufolint,
unicodedata2,
vharfbuzz,
}:
buildPythonPackage rec {
pname = "fontbakery";
version = "0.12.9";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-Cl0jRQqF83IIldkp1VuVSS4ZeVsQH1NNpyEkpMJqhA8=";
};
pyproject = true;
pythonRelaxDeps = [
"collidoscope"
"protobuf"
"vharfbuzz"
];
build-system = [
setuptools
setuptools-scm
];
nativeBuildInputs = [
installShellFiles
];
dependencies = [
axisregistry
@ -64,17 +81,17 @@ buildPythonPackage rec {
collidoscope
defcon
dehinter
fonttools
font-v
fonttools
freetype-py
gflanguages
gfsubsets
glyphsets
lxml
jinja2
lxml
munkres
ots-python
opentypespec
ots-python
packaging
pip-api
protobuf
@ -84,26 +101,12 @@ buildPythonPackage rec {
shaperglot
stringbrewer
toml
ufo2ft
ufolint
unicodedata2
vharfbuzz
ufo2ft
];
build-system = [
setuptools
setuptools-scm
];
nativeBuildInputs = [
installShellFiles
];
pythonRelaxDeps = [
"collidoscope"
"protobuf"
"vharfbuzz"
];
doCheck = true;
nativeCheckInputs = [
git
pytestCheckHook
@ -111,6 +114,7 @@ buildPythonPackage rec {
requests-mock
ufolint
];
preCheck = ''
# Let the tests invoke 'fontbakery' command.
export PATH="$out/bin:$PATH"
@ -121,6 +125,7 @@ buildPythonPackage rec {
git config user.name Test
git commit --allow-empty --message 'Dummy commit for tests'
'';
disabledTests = [
# These require network access:
"test_check_description_broken_links"