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 = [ ]; };