diff options
Diffstat (limited to 'pkgs/development/python-modules/ufo2ft/default.nix')
-rw-r--r-- | pkgs/development/python-modules/ufo2ft/default.nix | 66 |
1 files changed, 36 insertions, 30 deletions
diff --git a/pkgs/development/python-modules/ufo2ft/default.nix b/pkgs/development/python-modules/ufo2ft/default.nix index 5cbcf1370372..22ea350cf303 100644 --- a/pkgs/development/python-modules/ufo2ft/default.nix +++ b/pkgs/development/python-modules/ufo2ft/default.nix @@ -1,43 +1,52 @@ -{ lib -, booleanoperations -, buildPythonPackage -, cffsubr -, compreffor -, cu2qu -, defcon -, fetchPypi -, fonttools -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, setuptools-scm -, skia-pathops -, ufolib2 +{ + lib, + booleanoperations, + buildPythonPackage, + cffsubr, + compreffor, + cu2qu, + defcon, + fetchPypi, + fetchpatch2, + fontmath, + fonttools, + pytestCheckHook, + pythonOlder, + setuptools-scm, + skia-pathops, + syrupy, + ufolib2, }: buildPythonPackage rec { pname = "ufo2ft"; - version = "3.1.0"; + version = "3.3.0"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-5EUrML1Yd88tVEP+Kd9TmXm+5Ejk/XIH/USYBakK/wQ="; + hash = "sha256-lw5mLcVw1NFT1c/AOcMyo2a8aGOyxFG+ZAU6Ggnssko="; }; - nativeBuildInputs = [ - setuptools-scm - pythonRelaxDepsHook + patches = [ + (fetchpatch2 { + # update syrupy snapshots + url = "https://github.com/googlefonts/ufo2ft/commit/7a3edb2e4202cf388e3ffe31b5b3783dbb392db2.patch"; + hash = "sha256-YEgUgrtgH3PBZlt+xoJme+oPRuDMwq7M/4cJ3JbeuyU="; + }) ]; - pythonRelaxDeps = [ - "cffsubr" + build-system = [ + setuptools-scm ]; - propagatedBuildInputs = [ + pythonRelaxDeps = [ "cffsubr" ]; + + dependencies = [ cu2qu + fontmath fonttools defcon compreffor @@ -45,12 +54,11 @@ buildPythonPackage rec { cffsubr ufolib2 skia-pathops - ] - ++ fonttools.optional-dependencies.lxml - ++ fonttools.optional-dependencies.ufo; + ] ++ fonttools.optional-dependencies.lxml ++ fonttools.optional-dependencies.ufo; nativeCheckInputs = [ pytestCheckHook + syrupy ]; disabledTests = [ @@ -66,15 +74,13 @@ buildPythonPackage rec { "test_drop_glyph_names_variable" ]; - pythonImportsCheck = [ - "ufo2ft" - ]; + pythonImportsCheck = [ "ufo2ft" ]; meta = with lib; { description = "Bridge from UFOs to FontTools objects"; homepage = "https://github.com/googlefonts/ufo2ft"; changelog = "https://github.com/googlefonts/ufo2ft/releases/tag/v${version}"; license = licenses.mit; - maintainers = with maintainers; [ ]; + maintainers = [ ]; }; } |