diff --git a/pkgs/development/python-modules/w3lib/default.nix b/pkgs/development/python-modules/w3lib/default.nix index 135270f49b43..2849f5e1285c 100644 --- a/pkgs/development/python-modules/w3lib/default.nix +++ b/pkgs/development/python-modules/w3lib/default.nix @@ -2,21 +2,21 @@ lib, buildPythonPackage, fetchPypi, + hatchling, pytestCheckHook, - setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "w3lib"; - version = "2.3.1"; + version = "2.4.0"; pyproject = true; src = fetchPypi { - inherit pname version; - hash = "sha256-XIrAKjAnV2F0wrYeuaIXC6Gxl8rnZwgHcbbx/r2iSaQ="; + inherit (finalAttrs) pname version; + hash = "sha256-4jOtIWSbadDgR6EPMBga6Wd1JKKfb3H288dY3AyNJkg="; }; - build-system = [ setuptools ]; + build-system = [ hatchling ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -25,8 +25,8 @@ buildPythonPackage rec { meta = { description = "Library of web-related functions"; homepage = "https://github.com/scrapy/w3lib"; - changelog = "https://github.com/scrapy/w3lib/blob/v${version}/NEWS"; + changelog = "https://github.com/scrapy/w3lib/blob/${finalAttrs.version}/NEWS"; license = lib.licenses.bsd3; maintainers = [ ]; }; -} +})