Files
nixpkgs/pkgs/development/python-modules/unidecode/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
938 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
nix-update-script,
}:
buildPythonPackage rec {
pname = "unidecode";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "avian2";
repo = "unidecode";
tag = "unidecode-${version}";
hash = "sha256-CPogyDw8B1Xd3Bt6W9OaImVt+hFQsir16mnSYk8hFWQ=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "unidecode" ];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"unidecode-(.*)"
];
};
meta = {
description = "ASCII transliterations of Unicode text";
mainProgram = "unidecode";
homepage = "https://github.com/avian2/unidecode";
changelog = "https://github.com/avian2/unidecode/blob/unidecode-${version}/ChangeLog";
license = lib.licenses.gpl2Plus;
maintainers = [ ];
};
}