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 = [ ]; }; -} +})