nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 41 lines 855 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "charset-normalizer"; 10 version = "2.0.12"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.5"; 14 15 src = fetchFromGitHub { 16 owner = "Ousret"; 17 repo = "charset_normalizer"; 18 rev = version; 19 hash = "sha256-d5vWnZtFR669l1Meg4ZSsYIyBlJZya7SpXJMx2AP8NU="; 20 }; 21 22 checkInputs = [ 23 pytestCheckHook 24 ]; 25 26 postPatch = '' 27 substituteInPlace setup.cfg \ 28 --replace " --cov=charset_normalizer --cov-report=term-missing" "" 29 ''; 30 31 pythonImportsCheck = [ 32 "charset_normalizer" 33 ]; 34 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 }; 41}