From 847dc6cf5a1adab71004931f4dbbae47e01b21c2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 5 Oct 2025 12:24:59 +0200 Subject: [PATCH] python313Packages.pyunormalize: enable tests - modernize - add changelog to meta --- .../python-modules/pyunormalize/default.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/pyunormalize/default.nix b/pkgs/development/python-modules/pyunormalize/default.nix index 53f11f755a4f..ab3520d52a00 100644 --- a/pkgs/development/python-modules/pyunormalize/default.nix +++ b/pkgs/development/python-modules/pyunormalize/default.nix @@ -1,10 +1,9 @@ { lib, buildPythonPackage, - fetchPypi, - setuptools, - # nativeCheckInputs + fetchFromGitHub, pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -12,25 +11,23 @@ buildPythonPackage rec { version = "17.0.0"; pyproject = true; - # No tags on GitHub - src = fetchPypi { - inherit pname version; - hash = "sha256-CUmj5WgX4of+vK8bDMS1rfC7EHYo03kzWTgECUfux5I="; + src = fetchFromGitHub { + owner = "mlodewijck"; + repo = "pyunormalize"; + tag = "v${version}"; + hash = "sha256-JDcMWaA6r8YRZYJseyKUyPAInrqHHYhQXYmw9rr3ls4="; }; build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; - # The pypi archive does not contain the tests. - # NOTE: one should review this for each future update. - doCheck = false; - pythonImportsCheck = [ "pyunormalize" ]; meta = { description = "Unicode normalization forms (NFC, NFKC, NFD, NFKD) independent of the Python core Unicode database"; homepage = "https://github.com/mlodewijck/pyunormalize"; + changelog = "https://github.com/mlodewijck/pyunormalize/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hellwolf ]; };