From ed850ba75992608f1d0e53f23a2f38aaf38f5318 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 02:27:28 +0700 Subject: [PATCH 1/2] python3Packages.bibtexparser: migrate to pyproject --- pkgs/development/python-modules/bibtexparser/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/bibtexparser/default.nix b/pkgs/development/python-modules/bibtexparser/default.nix index eb1ff7825f35..cc21ad66c197 100644 --- a/pkgs/development/python-modules/bibtexparser/default.nix +++ b/pkgs/development/python-modules/bibtexparser/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, pyparsing, pytestCheckHook, }: @@ -9,7 +10,7 @@ buildPythonPackage rec { pname = "bibtexparser"; version = "1.4.4"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "sciunto-org"; @@ -18,7 +19,9 @@ buildPythonPackage rec { hash = "sha256-9zLJZAk2IBYTL7lACh6erY7A44XFZGJCr8dcpYlwKRI="; }; - propagatedBuildInputs = [ pyparsing ]; + build-system = [ setuptools ]; + + dependencies = [ pyparsing ]; nativeCheckInputs = [ pytestCheckHook ]; From 12f29768a75442cf654715e70a8fb90511b84489 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 02:32:09 +0700 Subject: [PATCH 2/2] python3Packages.bibtexparser: modernize --- .../python-modules/bibtexparser/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/bibtexparser/default.nix b/pkgs/development/python-modules/bibtexparser/default.nix index cc21ad66c197..2c4088a88201 100644 --- a/pkgs/development/python-modules/bibtexparser/default.nix +++ b/pkgs/development/python-modules/bibtexparser/default.nix @@ -7,15 +7,17 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "bibtexparser"; version = "1.4.4"; pyproject = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "sciunto-org"; - repo = "python-${pname}"; - tag = "v${version}"; + repo = "python-${finalAttrs.pname}"; + tag = "v${finalAttrs.version}"; hash = "sha256-9zLJZAk2IBYTL7lACh6erY7A44XFZGJCr8dcpYlwKRI="; }; @@ -35,4 +37,4 @@ buildPythonPackage rec { bsd3 ]; }; -} +})