Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, hypothesis 5, pythonOlder 6, pytestCheckHook 7, setuptools 8}: 9 10buildPythonPackage rec { 11 pname = "chardet"; 12 version = "5.1.0"; 13 format = "pyproject"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-DWJxK5VrwVT4X7CiZuKjxZE8KWfgA0hwGzJBHW3vMeU="; 19 }; 20 21 nativeBuildInputs = [ 22 setuptools 23 ]; 24 25 nativeCheckInputs = [ 26 # "hypothesis" indirectly depends on chardet to build its documentation. 27 (hypothesis.override { enableDocumentation = false; }) 28 pytestCheckHook 29 ]; 30 31 disabledTests = [ 32 # flaky; https://github.com/chardet/chardet/issues/256 33 "test_detect_all_and_detect_one_should_agree" 34 ]; 35 36 pythonImportsCheck = [ "chardet" ]; 37 38 meta = with lib; { 39 changelog = "https://github.com/chardet/chardet/releases/tag/${version}"; 40 description = "Universal encoding detector"; 41 homepage = "https://github.com/chardet/chardet"; 42 license = licenses.lgpl21Plus; 43 maintainers = with maintainers; [ domenkozar ]; 44 }; 45}