python3Packages.charset-normalizer: init at 2.0.1

This commit is contained in:
Fabian Affolter 2021-07-14 22:28:11 +02:00 committed by Martin Weinelt
parent 0877ba5e61
commit 5e3cb00953
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "charset-normalizer";
version = "2.0.1";
src = fetchFromGitHub {
owner = "Ousret";
repo = "charset_normalizer";
rev = version;
sha256 = "04rnyrqay11kma9pzagi1mzhc0sq37ggpv39kad2d4ynm35v2hfq";
};
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=charset_normalizer --cov-report=term-missing" ""
'';
pythonImportsCheck = [ "charset_normalizer" ];
meta = with lib; {
description = "Python module for encoding and language detection";
homepage = "https://charset-normalizer.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1423,6 +1423,8 @@ in {
chardet = callPackage ../development/python-modules/chardet { };
charset-normalizer = callPackage ../development/python-modules/charset-normalizer { };
chart-studio = callPackage ../development/python-modules/chart-studio { };
check-manifest = callPackage ../development/python-modules/check-manifest { };