lol

python3Packages.charset-normalizer: 3.4.0 -> 3.4.1

https://github.com/Ousret/charset_normalizer/blob/3.4.1/CHANGELOG.md

+17 -6
+17 -6
pkgs/development/python-modules/charset-normalizer/default.nix
··· 3 3 aiohttp, 4 4 buildPythonPackage, 5 5 fetchFromGitHub, 6 + mypy, 6 7 pytestCheckHook, 7 8 pythonOlder, 8 9 requests, 10 + setuptools, 11 + setuptools-scm, 9 12 }: 10 13 11 14 buildPythonPackage rec { 12 15 pname = "charset-normalizer"; 13 - version = "3.4.0"; 14 - format = "setuptools"; 16 + version = "3.4.1"; 17 + pyproject = true; 15 18 16 19 disabled = pythonOlder "3.5"; 17 20 ··· 19 22 owner = "Ousret"; 20 23 repo = "charset_normalizer"; 21 24 tag = version; 22 - hash = "sha256-de6rg/e9RPfuO44+/Uipad75YqZQrnqiSPopfBNOFP8="; 25 + hash = "sha256-z6XUXfNJ4+2Gq2O13MgF1D3j/bVBjgAG2wCWLaNgADE="; 23 26 }; 24 27 25 28 postPatch = '' 26 - substituteInPlace setup.cfg \ 27 - --replace " --cov=charset_normalizer --cov-report=term-missing" "" 29 + substituteInPlace pyproject.toml \ 30 + --replace-fail "mypy>=1.4.1,<=1.14.0" mypy 28 31 ''; 32 + 33 + build-system = [ 34 + mypy 35 + setuptools 36 + setuptools-scm 37 + ]; 38 + 39 + env.CHARSET_NORMALIZER_USE_MYPYC = "1"; 29 40 30 41 nativeCheckInputs = [ pytestCheckHook ]; 31 42 ··· 39 50 description = "Python module for encoding and language detection"; 40 51 mainProgram = "normalizer"; 41 52 homepage = "https://charset-normalizer.readthedocs.io/"; 42 - changelog = "https://github.com/Ousret/charset_normalizer/blob/${version}/CHANGELOG.md"; 53 + changelog = "https://github.com/Ousret/charset_normalizer/blob/${src.tag}/CHANGELOG.md"; 43 54 license = licenses.mit; 44 55 maintainers = with maintainers; [ fab ]; 45 56 };