mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
python3Packages.charset-normalizer: 3.4.9 -> 3.5.1
Changelog: https://github.com/jawah/charset_normalizer/blob/3.5.1/CHANGELOG.md
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user