a19cd4ffb1
This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
45 lines
852 B
Nix
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 ];
|
|
};
|
|
}
|