depot/third_party/nixpkgs/pkgs/development/python-modules/unidecode/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
885 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "unidecode";
version = "1.3.8";
pyproject = true;
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "avian2";
repo = "unidecode";
rev = "refs/tags/${pname}-${version}";
hash = "sha256-OoJSY+dNNISyVwKuRboMH7Je8nYFKxus2c4v3VsmyRE=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "unidecode" ];
meta = with lib; {
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 = licenses.gpl2Plus;
maintainers = with maintainers; [ domenkozar ];
};
}