Files
nixpkgs/pkgs/development/python-modules/cyrtranslit/default.nix
T
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

36 lines
801 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "cyrtranslit";
version = "1.2.0";
pyproject = true;
# Pypi tarball doesn't contain tests/
src = fetchFromGitHub {
owner = "opendatakosovo";
repo = "cyrillic-transliteration";
tag = "v${version}";
hash = "sha256-hE5fru9Y5gU4zG2Kz76w5HbVXKBua/cJdhItz3ou0kY=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "cyrtranslit" ];
meta = {
description = "Transliterate Cyrillic script to Latin script and vice versa";
homepage = "https://github.com/opendatakosovo/cyrillic-transliteration";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ erictapen ];
};
}