Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 936 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "jaconv"; 12 version = "0.3.4"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "ikegami-yukino"; 19 repo = "jaconv"; 20 tag = "v${version}"; 21 hash = "sha256-9ruhOLaYNESeKOwJs3IN6ct66fSq7My9DOyA7/cH3d0="; 22 }; 23 24 patches = [ 25 ./fix-packaging.patch 26 ./use-pytest.patch 27 ]; 28 29 build-system = [ setuptools ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "jaconv" ]; 34 35 meta = with lib; { 36 description = "Python Japanese character interconverter for Hiragana, Katakana, Hankaku and Zenkaku"; 37 homepage = "https://github.com/ikegami-yukino/jaconv"; 38 changelog = "https://github.com/ikegami-yukino/jaconv/blob/v${version}/CHANGES.rst"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}