Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
936 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "jaconv";
version = "0.3.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ikegami-yukino";
repo = "jaconv";
tag = "v${version}";
hash = "sha256-9ruhOLaYNESeKOwJs3IN6ct66fSq7My9DOyA7/cH3d0=";
};
patches = [
./fix-packaging.patch
./use-pytest.patch
];
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "jaconv" ];
meta = with lib; {
description = "Python Japanese character interconverter for Hiragana, Katakana, Hankaku and Zenkaku";
homepage = "https://github.com/ikegami-yukino/jaconv";
changelog = "https://github.com/ikegami-yukino/jaconv/blob/v${version}/CHANGES.rst";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}