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