From ccd47f874dc51a7856f09befdcf4e0016a4cbc78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 26 Mar 2026 09:50:47 -0700 Subject: [PATCH] python3Packages.w3lib: 2.4.0 -> 2.4.1 Diff: https://github.com/scrapy/w3lib/compare/v2.4.0...v2.4.1 Changelog: https://github.com/scrapy/w3lib/blob/v2.4.1/NEWS --- pkgs/development/python-modules/w3lib/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/w3lib/default.nix b/pkgs/development/python-modules/w3lib/default.nix index 2849f5e1285c..f386a43ef40b 100644 --- a/pkgs/development/python-modules/w3lib/default.nix +++ b/pkgs/development/python-modules/w3lib/default.nix @@ -1,19 +1,21 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, hatchling, pytestCheckHook, }: buildPythonPackage (finalAttrs: { pname = "w3lib"; - version = "2.4.0"; + version = "2.4.1"; pyproject = true; - src = fetchPypi { - inherit (finalAttrs) pname version; - hash = "sha256-4jOtIWSbadDgR6EPMBga6Wd1JKKfb3H288dY3AyNJkg="; + src = fetchFromGitHub { + owner = "scrapy"; + repo = "w3lib"; + tag = "v${finalAttrs.version}"; + hash = "sha256-RcjsuzlHx3vp0tBucCQZQTVq9FsxSpY9iLwlvoo02cE="; }; build-system = [ hatchling ]; @@ -25,7 +27,7 @@ buildPythonPackage (finalAttrs: { meta = { description = "Library of web-related functions"; homepage = "https://github.com/scrapy/w3lib"; - changelog = "https://github.com/scrapy/w3lib/blob/${finalAttrs.version}/NEWS"; + changelog = "https://github.com/scrapy/w3lib/blob/${finalAttrs.src.tag}/NEWS"; license = lib.licenses.bsd3; maintainers = [ ]; };