From a95fcb976497422a1df26883b7d3907470c55543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 19 Jun 2026 09:46:46 -0700 Subject: [PATCH] python3Packages.fontparts: 0.13.1 -> 1.0.0 Diff: https://github.com/robotools/fontParts/compare/0.13.1...1.0.0 Changelog: https://github.com/robotools/fontParts/releases/tag/1.0.0 --- .../python-modules/fontparts/default.nix | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/fontparts/default.nix b/pkgs/development/python-modules/fontparts/default.nix index b48b195a423c..bc6b8c1e797a 100644 --- a/pkgs/development/python-modules/fontparts/default.nix +++ b/pkgs/development/python-modules/fontparts/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, # build-system setuptools, @@ -17,17 +17,23 @@ python, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "fontparts"; - version = "0.13.1"; + version = "1.0.0"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-+oifxmY7MUkQj3Sy75wjRmoVEPkgZaO3+8/sauMMxYA="; - extension = "zip"; + src = fetchFromGitHub { + owner = "robotools"; + repo = "fontParts"; + tag = finalAttrs.version; + hash = "sha256-dBR9Lf8ECLAOAkEkEy4JCgOKmyXzwXaOXdW4cErWQcs="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail ', "vcs-versioning"' "" + ''; + build-system = [ setuptools setuptools-scm @@ -44,6 +50,8 @@ buildPythonPackage rec { ++ fonttools.optional-dependencies.lxml ++ fonttools.optional-dependencies.unicode; + pythonImportsCheck = [ "fontParts" ]; + checkPhase = '' runHook preCheck ${python.interpreter} Lib/fontParts/fontshell/test.py @@ -53,8 +61,8 @@ buildPythonPackage rec { meta = { description = "API for interacting with the parts of fonts during the font development process"; homepage = "https://github.com/robotools/fontParts"; - changelog = "https://github.com/robotools/fontParts/releases/tag/${version}"; + changelog = "https://github.com/robotools/fontParts/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = [ lib.maintainers.sternenseemann ]; }; -} +})