From b75c2d3c4843d1c9a6eb1026a2d4fb26546d2acb Mon Sep 17 00:00:00 2001 From: Harinn Date: Sun, 19 Jul 2026 00:23:17 +0700 Subject: [PATCH 1/2] python3Packages.greek-accentuation: migrate to pyproject --- .../python-modules/greek-accentuation/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/greek-accentuation/default.nix b/pkgs/development/python-modules/greek-accentuation/default.nix index b42d5ef270b6..82211721621c 100644 --- a/pkgs/development/python-modules/greek-accentuation/default.nix +++ b/pkgs/development/python-modules/greek-accentuation/default.nix @@ -2,15 +2,18 @@ buildPythonPackage, lib, fetchPypi, + setuptools, }: buildPythonPackage rec { pname = "greek-accentuation"; version = "1.2.0"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-l2HZXdqlLubvy2bWhhZVYGMpF0DXVKTDFehkcGF5xdk="; }; + + build-system = [ setuptools ]; meta = { description = "Python 3 library for accenting (and analyzing the accentuation of) Ancient Greek words"; homepage = "https://github.com/jtauber/greek-accentuation"; From 25eedba60858f8563d0f2a273e515bda41d39d6c Mon Sep 17 00:00:00 2001 From: Harinn Date: Sun, 19 Jul 2026 00:28:57 +0700 Subject: [PATCH 2/2] python3Packages.greek-accentuation: modernize --- .../python-modules/greek-accentuation/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/greek-accentuation/default.nix b/pkgs/development/python-modules/greek-accentuation/default.nix index 82211721621c..fb7838425bff 100644 --- a/pkgs/development/python-modules/greek-accentuation/default.nix +++ b/pkgs/development/python-modules/greek-accentuation/default.nix @@ -4,20 +4,27 @@ fetchPypi, setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "greek-accentuation"; version = "1.2.0"; pyproject = true; + + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + pname = "greek-accentuation"; + inherit (finalAttrs) version; hash = "sha256-l2HZXdqlLubvy2bWhhZVYGMpF0DXVKTDFehkcGF5xdk="; }; build-system = [ setuptools ]; + + pythonImportsCheck = [ "greek_accentuation" ]; + meta = { description = "Python 3 library for accenting (and analyzing the accentuation of) Ancient Greek words"; homepage = "https://github.com/jtauber/greek-accentuation"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ kmein ]; }; -} +})