diff --git a/pkgs/development/python-modules/charset-normalizer/default.nix b/pkgs/development/python-modules/charset-normalizer/default.nix index 1db84cffa0dd..4d5877b8b5bf 100644 --- a/pkgs/development/python-modules/charset-normalizer/default.nix +++ b/pkgs/development/python-modules/charset-normalizer/default.nix @@ -13,23 +13,18 @@ withMypyc ? !isPyPy && !stdenv.hostPlatform.isStatic, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "charset-normalizer"; - version = "3.4.9"; + version = "3.5.1"; pyproject = true; src = fetchFromGitHub { owner = "jawah"; repo = "charset_normalizer"; - tag = version; - hash = "sha256-YOskF90ach/qEwnMeYDEEO2H4DOoz/LZApXDRU9mvnM="; + tag = finalAttrs.version; + hash = "sha256-zIN1y9HVwaCqixjRFLn6g/tz95E41m7t7j4eY5jNZMs="; }; - postPatch = '' - substituteInPlace _mypyc_hook/backend.py \ - --replace-fail "mypy>=1.4.1,<2.2" "mypy" - ''; - build-system = [ setuptools ] @@ -50,10 +45,10 @@ buildPythonPackage rec { meta = { description = "Python module for encoding and language detection"; - mainProgram = "normalizer"; homepage = "https://charset-normalizer.readthedocs.io/"; - changelog = "https://github.com/jawah/charset_normalizer/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/jawah/charset_normalizer/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; + mainProgram = "normalizer"; }; -} +})