2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, text-unidecode
|
|
|
|
, chardet
|
|
|
|
, banal
|
2023-01-11 07:51:40 +00:00
|
|
|
, pyicu
|
2021-04-25 03:57:28 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "normality";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "2.2.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pudo";
|
|
|
|
repo = "normality";
|
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "n8Ycm5DeFItmMJTolazZKGIyN7CTg2ajDCwi/UqzVe8=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
text-unidecode
|
|
|
|
chardet
|
|
|
|
banal
|
2023-01-11 07:51:40 +00:00
|
|
|
pyicu
|
2021-04-25 03:57:28 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-25 03:57:28 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"normality"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Micro-library to normalize text strings";
|
|
|
|
homepage = "https://github.com/pudo/normality";
|
|
|
|
license = licenses.mit;
|
2023-03-24 00:07:29 +00:00
|
|
|
maintainers = [ ];
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|