1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # tests 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "unicode-rbnf"; 15 version = "2.3.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "rhasspy"; 20 repo = "unicode-rbnf"; 21 tag = "v${version}"; 22 hash = "sha256-RRPQHU8UMVspbhqKVR165czbYY42JopF6Nrhm0up3hw="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 pythonImportsCheck = [ "unicode_rbnf" ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 meta = with lib; { 32 changelog = "https://github.com/rhasspy/unicode-rbnf/blob/v${version}/CHANGELOG.md"; 33 description = "Pure Python implementation of ICU's rule-based number format engine"; 34 homepage = "https://github.com/rhasspy/unicode-rbnf"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ hexa ]; 37 }; 38}