depot/third_party/nixpkgs/pkgs/development/python-modules/chardet/default.nix
Default email 9405df4a82 Project import generated by Copybara.
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
2021-04-26 15:14:03 -04:00

32 lines
624 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, hypothesis
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "chardet";
version = "4.0.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-DW9ToV20Eg8rCMlPEefZPSyRHuEYtrMKBOw+6DEBefo=";
};
checkInputs = [
hypothesis
pytestCheckHook
];
pythonImportsCheck = [ "chardet" ];
meta = with lib; {
description = "Universal encoding detector";
homepage = "https://github.com/chardet/chardet";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ domenkozar ];
};
}