diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-07-14 22:28:11 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-08-12 23:48:35 +0200 |
commit | fe0bbb012720352e8ca68ceb2d893b7876deb70d (patch) | |
tree | 22c9642c392384f64f41fee99791d642b57e5d93 /pkgs/development/python-modules/charset-normalizer | |
parent | d4160b560312b2bd2da9da8524293f9e60b85918 (diff) |
python3Packages.charset-normalizer: init at 2.0.1
Diffstat (limited to 'pkgs/development/python-modules/charset-normalizer')
-rw-r--r-- | pkgs/development/python-modules/charset-normalizer/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/charset-normalizer/default.nix b/pkgs/development/python-modules/charset-normalizer/default.nix new file mode 100644 index 0000000000000..dc0f5e1b296ae --- /dev/null +++ b/pkgs/development/python-modules/charset-normalizer/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "charset-normalizer"; + version = "2.0.1"; + + src = fetchFromGitHub { + owner = "Ousret"; + repo = "charset_normalizer"; + rev = version; + sha256 = "04rnyrqay11kma9pzagi1mzhc0sq37ggpv39kad2d4ynm35v2hfq"; + }; + + 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 ]; + }; +} |