python3Packages.unicodedata2: modernize and migrate to pyproject

This commit is contained in:
SandaruKasa
2026-05-22 02:27:36 +03:00
parent c8983be99d
commit ddc2a75716

View File

@@ -3,18 +3,21 @@
buildPythonPackage,
fetchPypi,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "unicodedata2";
version = "17.0.1";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit version pname;
inherit (finalAttrs) version pname;
sha256 = "sha256-15lD0VP19r++P1Wl7GEZhRhL2jf87bPsx1Mi2CrmrTs=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "unicodedata2" ];
@@ -22,8 +25,8 @@ buildPythonPackage rec {
meta = {
description = "Backport and updates for the unicodedata module";
homepage = "https://github.com/mikekap/unicodedata2";
changelog = "https://github.com/fonttools/unicodedata2/releases/tag/${version}";
changelog = "https://github.com/fonttools/unicodedata2/releases/tag/${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ sternenseemann ];
};
}
})