From 08dc4b28a0eefa71799e0a5e9523981556868e07 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Sun, 26 Jul 2026 19:06:57 -0400 Subject: [PATCH] python3Packages.python-jobspy: modernize Signed-off-by: Ethan Carter Edwards --- .../python-modules/python-jobspy/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/python-jobspy/default.nix b/pkgs/development/python-modules/python-jobspy/default.nix index 980f66b03c22..eb3d538a6b0b 100644 --- a/pkgs/development/python-modules/python-jobspy/default.nix +++ b/pkgs/development/python-modules/python-jobspy/default.nix @@ -13,15 +13,17 @@ beautifulsoup4, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "python-jobspy"; version = "1.1.82"; pyproject = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "Bunsly"; repo = "JobSpy"; - tag = version; + tag = finalAttrs.version; hash = "sha256-iLtUIM7QBIl6UAcb1RvKt2uw5gHEIQXuo4z/OQu86wM="; }; @@ -53,8 +55,8 @@ buildPythonPackage rec { description = "Jobs scraper library for job sites"; downloadPage = "https://github.com/Bunsly/JobSpy"; homepage = "https://github.com/Bunsly/JobSpy"; - changelog = "https://github.com/Bunsly/JobSpy/releases/tag/${src.tag}"; + changelog = "https://github.com/Bunsly/JobSpy/releases/tag/${finalAttrs.src.rev}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ ethancedwards8 ]; }; -} +})