python3Packages.chardet: 5.2.0 -> 6.0.0.post1

Diff: https://github.com/chardet/chardet/compare/5.2.0...6.0.0.post1

Changelog: https://github.com/chardet/chardet/releases/tag/6.0.0.post1
This commit is contained in:
Robert Schütz 2026-05-20 09:50:57 -07:00
commit 0b780db8eb

View file

@ -1,26 +1,36 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
hatch-vcs,
hatchling,
hypothesis,
pytest-timeout,
pytest-xdist,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "chardet";
version = "5.2.0";
version = "6.0.0.post1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-Gztv9HmoxBS8P6LAhSmVaVxKAm3NbQYzst0JLKOcHPc=";
src = fetchFromGitHub {
owner = "chardet";
repo = "chardet";
tag = version;
hash = "sha256-7G998L4VRvNiGBBNAxPJB27lI2DtL1lTteowUH2NBDk=";
};
nativeBuildInputs = [ setuptools ];
build-system = [
hatch-vcs
hatchling
];
nativeCheckInputs = [
hypothesis
pytest-timeout
pytest-xdist
pytestCheckHook
];
@ -32,7 +42,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "chardet" ];
meta = {
changelog = "https://github.com/chardet/chardet/releases/tag/${version}";
changelog = "https://github.com/chardet/chardet/releases/tag/${src.tag}";
description = "Universal encoding detector";
mainProgram = "chardetect";
homepage = "https://github.com/chardet/chardet";