Merge pull request #330084 from jopejoe1/fontbakery-fix

python3Packages.fontbakery: fix dependecies
This commit is contained in:
OTABI Tomoya 2024-07-27 10:08:59 +09:00 committed by GitHub
commit 8886be8b26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 67 additions and 2 deletions

View File

@ -13,6 +13,7 @@
setuptools,
setuptools-scm,
ufolib2,
vfblib,
}:
buildPythonPackage rec {
@ -41,6 +42,7 @@ buildPythonPackage rec {
openstep-plist
orjson
ufolib2
vfblib
];
nativeCheckInputs = [
@ -48,6 +50,15 @@ buildPythonPackage rec {
pytestCheckHook
];
# Want non exsiting test data
disabledTests = [
"test_rename"
"test_rename_nested"
"test_rename_contextual"
];
disabledTestPaths = [ "tests/test_glyphs3_roundtrip.py" ];
meta = with lib; {
description = "Python library to load, examine, and save fonts in a variety of formats";
mainProgram = "babelfont";

View File

@ -6,11 +6,12 @@
matplotlib,
pyclipper,
unittestCheckHook,
gitUpdater,
}:
buildPythonPackage rec {
pname = "beziers";
version = "0.5.0";
version = "0.6.0";
format = "setuptools";
# PyPI doesn't have a proper source tarball, fetch from Github instead
@ -18,7 +19,7 @@ buildPythonPackage rec {
owner = "simoncozens";
repo = "beziers.py";
rev = "v${version}";
hash = "sha256-4014u7s47Tfdpa2Q9hKAoHg7Ebcs1/DVW5TpEmoh2bc=";
hash = "sha256-NjmWsRz/NPPwXPbiSaOeKJMrYmSyNTt5ikONyAljgvM=";
};
propagatedBuildInputs = [ pyclipper ];
@ -35,6 +36,8 @@ buildPythonPackage rec {
"-v"
];
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = with lib; {
description = "Python library for manipulating Bezier curves and paths in fonts";
homepage = "https://github.com/simoncozens/beziers.py";

View File

@ -0,0 +1,49 @@
{
lib,
fetchFromGitHub,
gitUpdater,
buildPythonPackage,
pytestCheckHook,
setuptools,
fonttools,
typing-extensions,
ufonormalizer,
ufolib2,
defcon,
}:
buildPythonPackage rec {
pname = "vfblib";
version = "0.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "LucasFonts";
repo = "vfbLib";
rev = "v${version}";
hash = "sha256-1F7Em3qX5QKHaGDYVfEOHwYu3PxZUWboe67Hgitvebc=";
};
build-system = [ setuptools ];
dependencies = [
fonttools
typing-extensions
ufonormalizer
ufolib2
defcon
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "vfbLib" ];
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = with lib; {
description = "Converter and deserializer for FontLab Studio 5 VFB files";
homepage = "https://github.com/LucasFonts/vfbLib";
license = licenses.gpl3Only;
maintainers = with maintainers; [ jopejoe1 ];
};
}

View File

@ -17037,6 +17037,8 @@ self: super: with self; {
veryprettytable = callPackage ../development/python-modules/veryprettytable { };
vfblib = callPackage ../development/python-modules/vfblib { };
vg = callPackage ../development/python-modules/vg { };
vharfbuzz = callPackage ../development/python-modules/vharfbuzz { };