python3Packages.chardet: 3.0.4 -> 4.0.0

This commit is contained in:
Fabian Affolter 2021-03-22 18:50:31 +01:00 committed by Frederik Rietdijk
parent dc2638276b
commit 5930166b22

View File

@ -1,29 +1,32 @@
{ lib, buildPythonPackage, fetchPypi, fetchpatch { lib
, pytest, pytestrunner, hypothesis }: , buildPythonPackage
, fetchPypi
, hypothesis
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "chardet"; pname = "chardet";
version = "3.0.4"; version = "4.0.0";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1bpalpia6r5x1kknbk11p1fzph56fmmnp405ds8icksd3knr5aw4"; sha256 = "sha256-DW9ToV20Eg8rCMlPEefZPSyRHuEYtrMKBOw+6DEBefo=";
}; };
patches = [ checkInputs = [
# Add pytest 4 support. See: https://github.com/chardet/chardet/pull/174 hypothesis
(fetchpatch { pytestCheckHook
url = "https://github.com/chardet/chardet/commit/0561ddcedcd12ea1f98b7ddedb93686ed8a5ffa4.patch";
sha256 = "1y1xhjf32rdhq9sfz58pghwv794f3w2f2qcn8p6hp4pc8jsdrn2q";
})
]; ];
checkInputs = [ pytest pytestrunner hypothesis ]; pythonImportsCheck = [ "chardet" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/chardet/chardet";
description = "Universal encoding detector"; description = "Universal encoding detector";
license = licenses.lgpl2; homepage = "https://github.com/chardet/chardet";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ domenkozar ]; maintainers = with maintainers; [ domenkozar ];
}; };
} }