linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / chardet / default.nix
blob65381d40268f4cc9b3d0237a8625c2dab28a37e2
1 { lib, buildPythonPackage, fetchPypi, fetchpatch
2 , pytest, pytestrunner, hypothesis }:
4 buildPythonPackage rec {
5   pname = "chardet";
6   version = "3.0.4";
8   src = fetchPypi {
9     inherit pname version;
10     sha256 = "1bpalpia6r5x1kknbk11p1fzph56fmmnp405ds8icksd3knr5aw4";
11   };
13   patches = [
14     # Add pytest 4 support. See: https://github.com/chardet/chardet/pull/174
15     (fetchpatch {
16       url = "https://github.com/chardet/chardet/commit/0561ddcedcd12ea1f98b7ddedb93686ed8a5ffa4.patch";
17       sha256 = "1y1xhjf32rdhq9sfz58pghwv794f3w2f2qcn8p6hp4pc8jsdrn2q";
18     })
19   ];
21   checkInputs = [ pytest pytestrunner hypothesis ];
23   meta = with lib; {
24     homepage = "https://github.com/chardet/chardet";
25     description = "Universal encoding detector";
26     license = licenses.lgpl2;
27     maintainers = with maintainers; [ domenkozar ];
28   };