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