at master 947 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 hypothesis, 6 pythonOlder, 7 pytestCheckHook, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "chardet"; 13 version = "5.2.0"; 14 format = "pyproject"; 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-Gztv9HmoxBS8P6LAhSmVaVxKAm3NbQYzst0JLKOcHPc="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 nativeCheckInputs = [ 25 hypothesis 26 pytestCheckHook 27 ]; 28 29 disabledTests = [ 30 # flaky; https://github.com/chardet/chardet/issues/256 31 "test_detect_all_and_detect_one_should_agree" 32 ]; 33 34 pythonImportsCheck = [ "chardet" ]; 35 36 meta = with lib; { 37 changelog = "https://github.com/chardet/chardet/releases/tag/${version}"; 38 description = "Universal encoding detector"; 39 mainProgram = "chardetect"; 40 homepage = "https://github.com/chardet/chardet"; 41 license = licenses.lgpl21Plus; 42 maintainers = with maintainers; [ ]; 43 }; 44}