python3Packages.afdko: 3.9.0 -> 3.9.2

authored by Jonas Heinrich and committed by sternenseemann d9a7ea80 c956f85f

+34 -42
+34 -20
pkgs/development/python-modules/afdko/default.nix
··· 1 - { lib, stdenv, buildPythonPackage, fetchPypi, fetchpatch, pythonOlder 2 - , fonttools, defcon, lxml, fs, unicodedata2, zopfli, brotlipy, fontpens 3 - , brotli, fontmath, mutatormath, booleanoperations 4 - , ufoprocessor, ufonormalizer, psautohint, tqdm 5 - , setuptools-scm, scikit-build 6 , cmake 7 , antlr4_9 8 , libxml2 ··· 14 15 buildPythonPackage rec { 16 pname = "afdko"; 17 - version = "3.9.0"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 - sha256 = "1fjsaz6bp028fbmry6fzfcih78mdzycqmky1wsz5y0bg4kfk4shh"; 24 }; 25 26 - format = "pyproject"; 27 - 28 nativeBuildInputs = [ 29 setuptools-scm 30 scikit-build ··· 42 43 # Use antlr4 runtime from nixpkgs and link it dynamically 44 ./use-dynamic-system-antlr4-runtime.patch 45 - 46 - ./libxml2-cmake-find-package.patch 47 ]; 48 49 # setup.py will always (re-)execute cmake in buildPhase ··· 67 psautohint 68 tqdm 69 ]; 70 71 checkInputs = [ pytestCheckHook ]; 72 preCheck = '' 73 export PATH=$PATH:$out/bin 74 - 75 - # Update tests to match ufinormalizer-0.6.1 expectations: 76 - # https://github.com/adobe-type-tools/afdko/issues/1418 77 - find tests -name layerinfo.plist -delete 78 ''; 79 disabledTests = lib.optionals (!runAllTests) [ 80 # Disable slow tests, reduces test time ~25 % 81 "test_report" ··· 91 "test_spec" 92 ] ++ lib.optionals (stdenv.hostPlatform.isi686) [ 93 "test_type1mm_inputs" 94 - ] ++ [ 95 - # No longer succeeds in 2023 96 - # https://github.com/adobe-type-tools/afdko/issues/1589 97 - "test_ufo_fontinfo_parsing" 98 ]; 99 100 passthru.tests = { ··· 102 }; 103 104 meta = with lib; { 105 description = "Adobe Font Development Kit for OpenType"; 106 - homepage = "https://adobe-type-tools.github.io/afdko/"; 107 license = licenses.asl20; 108 maintainers = [ maintainers.sternenseemann ]; 109 };
··· 1 + { lib 2 + , stdenv 3 + , buildPythonPackage 4 + , fetchPypi 5 + , fetchpatch 6 + , pythonOlder 7 + , fonttools 8 + , defcon 9 + , lxml 10 + , fs 11 + , unicodedata2 12 + , zopfli 13 + , brotlipy 14 + , fontpens 15 + , brotli 16 + , fontmath 17 + , mutatormath 18 + , booleanoperations 19 + , ufoprocessor 20 + , ufonormalizer 21 + , psautohint 22 + , tqdm 23 + , setuptools-scm 24 + , scikit-build 25 , cmake 26 , antlr4_9 27 , libxml2 ··· 33 34 buildPythonPackage rec { 35 pname = "afdko"; 36 + version = "3.9.2"; 37 + format = "pyproject"; 38 39 disabled = pythonOlder "3.7"; 40 41 src = fetchPypi { 42 inherit pname version; 43 + sha256 = "sha256-3JEnQbS4CtZEqAb+/ngqkO+nv9SZ0Zi8sPJLyW+tQ9w="; 44 }; 45 46 nativeBuildInputs = [ 47 setuptools-scm 48 scikit-build ··· 60 61 # Use antlr4 runtime from nixpkgs and link it dynamically 62 ./use-dynamic-system-antlr4-runtime.patch 63 ]; 64 65 # setup.py will always (re-)execute cmake in buildPhase ··· 83 psautohint 84 tqdm 85 ]; 86 + 87 + # Use system libxml2 88 + FORCE_SYSTEM_LIBXML2 = true; 89 90 checkInputs = [ pytestCheckHook ]; 91 + 92 preCheck = '' 93 export PATH=$PATH:$out/bin 94 ''; 95 + 96 disabledTests = lib.optionals (!runAllTests) [ 97 # Disable slow tests, reduces test time ~25 % 98 "test_report" ··· 108 "test_spec" 109 ] ++ lib.optionals (stdenv.hostPlatform.isi686) [ 110 "test_type1mm_inputs" 111 ]; 112 113 passthru.tests = { ··· 115 }; 116 117 meta = with lib; { 118 + changelog = "https://github.com/adobe-type-tools/afdko/blob/${version}/NEWS.md"; 119 description = "Adobe Font Development Kit for OpenType"; 120 + homepage = "https://adobe-type-tools.github.io/afdko"; 121 license = licenses.asl20; 122 maintainers = [ maintainers.sternenseemann ]; 123 };
-22
pkgs/development/python-modules/afdko/libxml2-cmake-find-package.patch
··· 1 - commit c423d1ddf0345aed7ecaf4c8b9e1fa5108aafc6f 2 - Author: sternenseemann <sternenseemann@systemli.org> 3 - Date: Sat Jul 2 12:35:56 2022 +0200 4 - 5 - Force use of CMake-shipped FindLibXml2 module 6 - 7 - This is needed to work around a nixpkgs bug: 8 - https://github.com/NixOS/nixpkgs/issues/125008 9 - 10 - diff --git a/CMakeLists.txt b/CMakeLists.txt 11 - index a75b6fb1..c1408283 100644 12 - --- a/CMakeLists.txt 13 - +++ b/CMakeLists.txt 14 - @@ -42,7 +42,7 @@ set(ANTLR4_TAG tags/4.9.3) 15 - find_path(ANTLR4_HEADER antlr4-runtime.h PATH_SUFFIXES antlr4-runtime) 16 - set(ANTLR4_INCLUDE_DIRS ${ANTLR4_HEADER}) 17 - 18 - -FIND_PACKAGE(LibXml2) 19 - +FIND_PACKAGE(LibXml2 REQUIRED MODULE) 20 - IF (NOT ${LibXml2_FOUND}) 21 - MESSAGE(STATUS "Could not locate LibXml2, will install externally.") 22 - set(LIBXML2_TAG tags/v2.9.13)
···