1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 hatchling, 6 text-unidecode, 7 charset-normalizer, 8 chardet, 9 banal, 10 pyicu, 11 pytestCheckHook, 12}: 13buildPythonPackage rec { 14 pname = "normality"; 15 version = "2.6.1"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "pudo"; 20 repo = "normality"; 21 rev = version; 22 hash = "sha256-RsZP/GkEuPKGZK2+/57kvMwm9vk0FTKN2/XtOmfoZxA="; 23 }; 24 25 buildInputs = [ hatchling ]; 26 27 propagatedBuildInputs = [ 28 charset-normalizer 29 text-unidecode 30 chardet 31 banal 32 pyicu 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 pythonImportsCheck = [ "normality" ]; 37 38 meta = { 39 description = "Micro-library to normalize text strings"; 40 homepage = "https://github.com/pudo/normality"; 41 license = lib.licenses.mit; 42 maintainers = with lib.maintainers; [ sigmanificient ]; 43 }; 44}