Files
nixpkgs/pkgs/development/python-modules/normality/default.nix
T
2025-03-07 21:12:23 +01:00

45 lines
852 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
hatchling,
text-unidecode,
charset-normalizer,
chardet,
banal,
pyicu,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "normality";
version = "2.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pudo";
repo = "normality";
rev = version;
hash = "sha256-RsZP/GkEuPKGZK2+/57kvMwm9vk0FTKN2/XtOmfoZxA=";
};
buildInputs = [ hatchling ];
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 ];
};
}