1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 unittestCheckHook, 7 hanzidentifier, 8 zhon, 9}: 10 11buildPythonPackage rec { 12 pname = "dragonmapper"; 13 version = "0.3.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "tsroten"; 18 repo = "dragonmapper"; 19 tag = "v${version}"; 20 hash = "sha256-3SRSu/9cpg2YcEuPFxBXg6KHgRSX5SiMAFbyE40m6ks="; 21 }; 22 23 build-system = [ hatchling ]; 24 25 dependencies = [ 26 hanzidentifier 27 zhon 28 ]; 29 30 nativeCheckInputs = [ unittestCheckHook ]; 31 32 pythonImportsCheck = [ "dragonmapper" ]; 33 34 meta = { 35 description = "Identification and conversion functions for Chinese text processing"; 36 homepage = "https://github.com/tsroten/dragonmapper"; 37 changelog = "https://github.com/tsroten/dragonmapper/blob/${src.rev}/CHANGES.rst"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ ShamrockLee ]; 40 }; 41}