2021-03-22 17:50:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, hypothesis
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chardet";
|
2021-03-22 17:50:31 +00:00
|
|
|
version = "4.0.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-22 17:50:31 +00:00
|
|
|
sha256 = "sha256-DW9ToV20Eg8rCMlPEefZPSyRHuEYtrMKBOw+6DEBefo=";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2021-03-22 17:50:31 +00:00
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
pytestCheckHook
|
2019-05-25 02:03:00 +01:00
|
|
|
];
|
|
|
|
|
2021-03-22 17:50:31 +00:00
|
|
|
pythonImportsCheck = [ "chardet" ];
|
2017-09-05 10:16:41 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-05 10:16:41 +01: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 10:16:41 +01:00
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|