2021-04-20 04:00:22 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, text-unidecode
|
|
|
|
, chardet
|
|
|
|
, banal
|
|
|
|
, PyICU
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "normality";
|
2021-11-15 04:20:00 +00:00
|
|
|
version = "2.2.5";
|
2021-04-20 04:00:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pudo";
|
|
|
|
repo = "normality";
|
|
|
|
rev = version;
|
2021-11-15 04:20:00 +00:00
|
|
|
sha256 = "n8Ycm5DeFItmMJTolazZKGIyN7CTg2ajDCwi/UqzVe8=";
|
2021-04-20 04:00:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
text-unidecode
|
|
|
|
chardet
|
|
|
|
banal
|
|
|
|
PyICU
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"normality"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Micro-library to normalize text strings";
|
|
|
|
homepage = "https://github.com/pudo/normality";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = teams.determinatesystems.members;
|
|
|
|
};
|
|
|
|
}
|