mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
python3Packages.charset-normalizer: init at 2.0.1
This commit is contained in:
parent
0877ba5e61
commit
5e3cb00953
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user