2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cu2qu,
|
|
|
|
defcon,
|
|
|
|
fontfeatures,
|
|
|
|
fonttools,
|
|
|
|
glyphslib,
|
|
|
|
openstep-plist,
|
|
|
|
orjson,
|
|
|
|
pytestCheckHook,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2024-06-05 15:53:02 +00:00
|
|
|
ufolib2,
|
2024-07-27 06:49:29 +00:00
|
|
|
vfblib,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "babelfont";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.0.5";
|
|
|
|
pyproject = true;
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
# PyPI source tarballs omit tests, fetch from Github instead
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simoncozens";
|
|
|
|
repo = pname;
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-9PEOkkm7qH4ExiJJKrTZX5Ph/urtOyFsy7jjtFepncU=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = [
|
2024-01-02 11:29:13 +00:00
|
|
|
cu2qu
|
|
|
|
fontfeatures
|
|
|
|
fonttools
|
|
|
|
glyphslib
|
|
|
|
openstep-plist
|
|
|
|
orjson
|
2024-01-13 08:15:51 +00:00
|
|
|
ufolib2
|
2024-07-27 06:49:29 +00:00
|
|
|
vfblib
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
defcon
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
# Want non exsiting test data
|
|
|
|
disabledTests = [
|
|
|
|
"test_rename"
|
|
|
|
"test_rename_nested"
|
|
|
|
"test_rename_contextual"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [ "tests/test_glyphs3_roundtrip.py" ];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to load, examine, and save fonts in a variety of formats";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "babelfont";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/simoncozens/babelfont";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ danc86 ];
|
|
|
|
};
|
|
|
|
}
|