mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
python3Packages.fonttools: 4.46.0 -> 4.49.0
This commit is contained in:
parent
8103830c97
commit
3592da9567
1 changed files with 17 additions and 9 deletions
|
@ -4,6 +4,7 @@
|
|||
, pythonOlder
|
||||
, isPyPy
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, fs
|
||||
, lxml
|
||||
|
@ -14,38 +15,43 @@
|
|||
, lz4
|
||||
, scipy
|
||||
, munkres
|
||||
, pycairo
|
||||
, matplotlib
|
||||
, sympy
|
||||
, xattr
|
||||
, skia-pathops
|
||||
, uharfbuzz
|
||||
, pytestCheckHook
|
||||
, pytest_7
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fonttools";
|
||||
version = "4.46.0";
|
||||
format = "setuptools";
|
||||
version = "4.49.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-QpC1OWpqhJpzS59OG8A/nndWDoeYyAFUTIcsppLzM8Y=";
|
||||
hash = "sha256-8xQVuAnIS/mwYKwI+ow0YArIP8wFTKWGLZ+NCgIFYok=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = let
|
||||
optional-dependencies = let
|
||||
extras = {
|
||||
ufo = [ fs ];
|
||||
lxml = [ lxml ];
|
||||
woff = [ (if isPyPy then brotlicffi else brotli) zopfli ];
|
||||
unicode = lib.optional (pythonOlder "3.11") unicodedata2;
|
||||
graphite = [ lz4 ];
|
||||
interpolatable = [ (if isPyPy then munkres else scipy) ];
|
||||
interpolatable = [ pycairo (if isPyPy then munkres else scipy) ];
|
||||
plot = [ matplotlib ];
|
||||
symfont = [ sympy ];
|
||||
type1 = lib.optional stdenv.isDarwin xattr;
|
||||
|
@ -57,7 +63,9 @@ buildPythonPackage rec {
|
|||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
# test suite fails with pytest>=8.0.1
|
||||
# https://github.com/fonttools/fonttools/issues/3458
|
||||
(pytestCheckHook.override { pytest = pytest_7; })
|
||||
] ++ lib.concatLists (lib.attrVals ([
|
||||
"woff"
|
||||
# "interpolatable" is not included because it only contains 2 tests at the time of writing but adds 270 extra dependencies
|
||||
|
@ -66,7 +74,7 @@ buildPythonPackage rec {
|
|||
"pathops" # broken
|
||||
] ++ [
|
||||
"repacker"
|
||||
]) passthru.optional-dependencies);
|
||||
]) optional-dependencies);
|
||||
|
||||
pythonImportsCheck = [ "fontTools" ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue