From 083c286dd57cba1d346780eb342e53db30df30aa Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 27 May 2026 23:39:18 +0200 Subject: [PATCH] python3Packages.arabic-reshaper: 3.0.0 -> 3.0.1 https://github.com/mpcabd/python-arabic-reshaper/releases/tag/v3.0.1 --- .../arabic-reshaper/default.nix | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/arabic-reshaper/default.nix b/pkgs/development/python-modules/arabic-reshaper/default.nix index cde49f801ec0..701fcd562133 100644 --- a/pkgs/development/python-modules/arabic-reshaper/default.nix +++ b/pkgs/development/python-modules/arabic-reshaper/default.nix @@ -3,34 +3,41 @@ buildPythonPackage, fetchFromGitHub, fonttools, + hatchling, pytestCheckHook, + pytest-cov-stub, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "arabic-reshaper"; - version = "3.0.0"; - format = "setuptools"; + version = "3.0.1"; + pyproject = true; src = fetchFromGitHub { owner = "mpcabd"; repo = "python-arabic-reshaper"; - tag = "v${version}"; - hash = "sha256-ucSC5aTvpnlAVQcT0afVecnoN3hIZKtzUhEQ6Qg0jQM="; + tag = "v${finalAttrs.version}"; + hash = "sha256-6i/YcYod341bg9tThZRwvaFRbtU/LxCeirq0yzmMuBI="; }; + build-system = [ hatchling ]; + optional-dependencies = { with-fonttools = [ fonttools ]; }; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + ]; pythonImportsCheck = [ "arabic_reshaper" ]; meta = { description = "Reconstruct Arabic sentences to be used in applications that don't support Arabic"; homepage = "https://github.com/mpcabd/python-arabic-reshaper"; - changelog = "https://github.com/mpcabd/python-arabic-reshaper/releases/tag/v${version}"; + changelog = "https://github.com/mpcabd/python-arabic-reshaper/releases/tag/${finalAttrs.src.tag}"; license = with lib.licenses; [ mit ]; maintainers = [ ]; }; -} +})