python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / python-modules / charset-normalizer / default.nix
blob9661700a285883e26ae3f4e47edc0428d50397a8
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "charset-normalizer";
10   version = "2.1.0";
11   format = "setuptools";
13   disabled = pythonOlder "3.5";
15   src = fetchFromGitHub {
16     owner = "Ousret";
17     repo = "charset_normalizer";
18     rev = "refs/tags/${version}";
19     hash = "sha256-ntNMHjkQJqzSElEeyFmPIjUh6ZxQkTktPipfPHiJ/Vc=";
20   };
22   checkInputs = [
23     pytestCheckHook
24   ];
26   postPatch = ''
27     substituteInPlace setup.cfg \
28       --replace " --cov=charset_normalizer --cov-report=term-missing" ""
29   '';
31   pythonImportsCheck = [
32     "charset_normalizer"
33   ];
35   meta = with lib; {
36     description = "Python module for encoding and language detection";
37     homepage = "https://charset-normalizer.readthedocs.io/";
38     license = licenses.mit;
39     maintainers = with maintainers; [ fab ];
40   };