1{ lib
2, buildPythonPackage
3, fetchPypi
4, hypothesis
5, pythonOlder
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "chardet";
11 version = "4.0.0";
12 disabled = pythonOlder "3.6";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "sha256-DW9ToV20Eg8rCMlPEefZPSyRHuEYtrMKBOw+6DEBefo=";
17 };
18
19 checkInputs = [
20 hypothesis
21 pytestCheckHook
22 ];
23
24 pythonImportsCheck = [ "chardet" ];
25
26 meta = with lib; {
27 description = "Universal encoding detector";
28 homepage = "https://github.com/chardet/chardet";
29 license = licenses.lgpl21Plus;
30 maintainers = with maintainers; [ domenkozar ];
31 };
32}