f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
48 lines
897 B
Nix
48 lines
897 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
setuptools,
|
|
setuptools-scm,
|
|
text-unidecode,
|
|
charset-normalizer,
|
|
chardet,
|
|
banal,
|
|
pyicu,
|
|
pytestCheckHook,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "normality";
|
|
version = "2.5.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pudo";
|
|
repo = "normality";
|
|
rev = version;
|
|
hash = "sha256-cGQpNhUqlT2B9wKDoDeDmyCNQLwWR7rTCLxnPHhMR0w=";
|
|
};
|
|
|
|
buildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
charset-normalizer
|
|
text-unidecode
|
|
chardet
|
|
banal
|
|
pyicu
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
pythonImportsCheck = [ "normality" ];
|
|
|
|
meta = {
|
|
description = "Micro-library to normalize text strings";
|
|
homepage = "https://github.com/pudo/normality";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
};
|
|
}
|