From ce53d5ea6f01688c2c73e82fc3adb006d1264c7d Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 20:15:03 +0700 Subject: [PATCH] python3Packages.arxiv2bib: modernize --- .../development/python-modules/arxiv2bib/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/arxiv2bib/default.nix b/pkgs/development/python-modules/arxiv2bib/default.nix index cf83988d5f6b..a27a25aed637 100644 --- a/pkgs/development/python-modules/arxiv2bib/default.nix +++ b/pkgs/development/python-modules/arxiv2bib/default.nix @@ -7,17 +7,19 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "arxiv2bib"; version = "1.0.8"; pyproject = true; + __structuredAttrs = true; + # Missing tests on Pypi src = fetchFromGitHub { owner = "nathangrigg"; repo = "arxiv2bib"; - rev = version; - sha256 = "1kp2iyx20lpc9dv4qg5fgwf83a1wx6f7hj1ldqyncg0kn9xcrhbg"; + tag = finalAttrs.version; + hash = "sha256-b8HMerITPGY9bjRIeJzpPKiBHH+uPEx2S+xSILqP4s4="; }; build-system = [ setuptools ]; @@ -31,6 +33,8 @@ buildPythonPackage rec { "tests" ]; + pythonImportsCheck = [ "arxiv2bib" ]; + meta = { description = "Get a BibTeX entry from an arXiv id number, using the arxiv.org API"; mainProgram = "arxiv2bib"; @@ -38,4 +42,4 @@ buildPythonPackage rec { license = lib.licenses.bsd3; maintainers = [ lib.maintainers.nico202 ]; }; -} +})