From b46750384d407db89e09571fcca8015b7c62b18e Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sat, 29 Aug 2026 23:59:37 +0200 Subject: [PATCH 1/2] python3Packages.pylatexenc: migrate to pyproject --- pkgs/development/python-modules/pylatexenc/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pylatexenc/default.nix b/pkgs/development/python-modules/pylatexenc/default.nix index 503ac226bf5b..0d61e86d11ec 100644 --- a/pkgs/development/python-modules/pylatexenc/default.nix +++ b/pkgs/development/python-modules/pylatexenc/default.nix @@ -2,13 +2,14 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, pytestCheckHook, }: buildPythonPackage rec { pname = "pylatexenc"; version = "2.11"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "phfaist"; @@ -17,6 +18,8 @@ buildPythonPackage rec { hash = "sha256-Zv3Sjx0YpSCnoHHf3CSiGaFMS7FNgUUwvIxNX/k9tOg="; }; + build-system = [ setuptools ]; + pythonImportsCheck = [ "pylatexenc" ]; nativeCheckInputs = [ pytestCheckHook ]; From d56b8c23bf6b74df545b6b49395dc498b1408bf6 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sat, 29 Aug 2026 23:59:59 +0200 Subject: [PATCH 2/2] python3Packages.pylatexenc: modernize --- pkgs/development/python-modules/pylatexenc/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pylatexenc/default.nix b/pkgs/development/python-modules/pylatexenc/default.nix index 0d61e86d11ec..cff710bea20a 100644 --- a/pkgs/development/python-modules/pylatexenc/default.nix +++ b/pkgs/development/python-modules/pylatexenc/default.nix @@ -6,21 +6,24 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pylatexenc"; version = "2.11"; + pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "phfaist"; repo = "pylatexenc"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-Zv3Sjx0YpSCnoHHf3CSiGaFMS7FNgUUwvIxNX/k9tOg="; }; build-system = [ setuptools ]; pythonImportsCheck = [ "pylatexenc" ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { @@ -31,4 +34,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = [ ]; }; -} +})