emacsPackages.treemacs: replace python3 program (#364623)
[NixPkgs.git] / pkgs / development / python-modules / chardet / default.nix
blobc4759f316d8eff28bf04b32054455c191043d54a
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   hypothesis,
6   pythonOlder,
7   pytestCheckHook,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "chardet";
13   version = "5.2.0";
14   format = "pyproject";
15   disabled = pythonOlder "3.6";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-Gztv9HmoxBS8P6LAhSmVaVxKAm3NbQYzst0JLKOcHPc=";
20   };
22   nativeBuildInputs = [ setuptools ];
24   nativeCheckInputs = [
25     hypothesis
26     pytestCheckHook
27   ];
29   disabledTests = [
30     # flaky; https://github.com/chardet/chardet/issues/256
31     "test_detect_all_and_detect_one_should_agree"
32   ];
34   pythonImportsCheck = [ "chardet" ];
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; [ domenkozar ];
43   };