depot/third_party/nixpkgs/pkgs/development/python-modules/charset-normalizer/default.nix
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

35 lines
778 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "charset-normalizer";
version = "2.0.8";
src = fetchFromGitHub {
owner = "Ousret";
repo = "charset_normalizer";
rev = version;
sha256 = "sha256-+acnzdDcujnMa0FYlWaAX7Ga9APMRlvBLKoogIyY8YM=";
};
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=charset_normalizer --cov-report=term-missing" ""
'';
pythonImportsCheck = [ "charset_normalizer" ];
meta = with lib; {
description = "Python module for encoding and language detection";
homepage = "https://charset-normalizer.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}