python311Packages.unicode-rbnf: init at 1.0.0

A pure Python implementation of ICU's rule-based number format engine.
This commit is contained in:
Martin Weinelt 2023-11-08 21:43:52 +01:00
parent 6e0059f678
commit 790473b772
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "unicode-rbnf";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "rhasspy";
repo = "unicode-rbnf";
rev = "v${version}";
hash = "sha256-xwnfqWwQJKCJ4G+8eVaySTJAHxhwKYAqLHaCsxtBIl0=";
};
nativeBuildInputs = [
setuptools
];
pythonImportsCheck = [
"unicode_rbnf"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
changelog = "https://github.com/rhasspy/unicode-rbnf/v${version}/master/CHANGELOG.md";
description = "A pure Python implementation of ICU's rule-based number format engine";
homepage = "https://github.com/rhasspy/unicode-rbnf";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View file

@ -15451,6 +15451,8 @@ self: super: with self; {
unicodedata2 = callPackage ../development/python-modules/unicodedata2 { };
unicode-rbnf = callPackage ../development/python-modules/unicode-rbnf { };
unicode-slugify = callPackage ../development/python-modules/unicode-slugify { };
unicorn = callPackage ../development/python-modules/unicorn {