2021-03-22 17:50:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, hypothesis
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chardet";
|
2021-03-22 17:50:31 +00:00
|
|
|
version = "4.0.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-22 17:50:31 +00:00
|
|
|
sha256 = "sha256-DW9ToV20Eg8rCMlPEefZPSyRHuEYtrMKBOw+6DEBefo=";
|
2017-09-05 09:16:41 +00:00
|
|
|
};
|
|
|
|
|
2021-03-22 17:50:31 +00:00
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
pytestCheckHook
|
2019-05-25 01:03:00 +00:00
|
|
|
];
|
|
|
|
|
2021-03-22 17:50:31 +00:00
|
|
|
pythonImportsCheck = [ "chardet" ];
|
2017-09-05 09:16:41 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-05 09:16:41 +00:00
|
|
|
description = "Universal encoding detector";
|
2021-03-22 17:50:31 +00:00
|
|
|
homepage = "https://github.com/chardet/chardet";
|
|
|
|
license = licenses.lgpl21Plus;
|
2017-09-05 09:16:41 +00:00
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|