2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
text-unidecode,
|
|
|
|
charset-normalizer,
|
|
|
|
chardet,
|
|
|
|
banal,
|
|
|
|
pyicu,
|
|
|
|
pytestCheckHook,
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "normality";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.5.0";
|
|
|
|
pyproject = true;
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pudo";
|
|
|
|
repo = "normality";
|
|
|
|
rev = version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-cGQpNhUqlT2B9wKDoDeDmyCNQLwWR7rTCLxnPHhMR0w=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
buildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-05-15 15:35:15 +00:00
|
|
|
charset-normalizer
|
2021-04-25 03:57:28 +00:00
|
|
|
text-unidecode
|
|
|
|
chardet
|
|
|
|
banal
|
2023-01-11 07:51:40 +00:00
|
|
|
pyicu
|
2021-04-25 03:57:28 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "normality" ];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Micro-library to normalize text strings";
|
|
|
|
homepage = "https://github.com/pudo/normality";
|
|
|
|
license = licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|