depot/third_party/nixpkgs/pkgs/development/python-modules/normality/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

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 ];
};
}