depot/third_party/nixpkgs/pkgs/development/python-modules/unidecode/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

43 lines
895 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 ];
};
}