From 790473b7727adb2d7b2e1f34e4d1c5ca95fc8abc Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 8 Nov 2023 21:43:52 +0100 Subject: [PATCH] python311Packages.unicode-rbnf: init at 1.0.0 A pure Python implementation of ICU's rule-based number format engine. --- .../python-modules/unicode-rbnf/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/unicode-rbnf/default.nix diff --git a/pkgs/development/python-modules/unicode-rbnf/default.nix b/pkgs/development/python-modules/unicode-rbnf/default.nix new file mode 100644 index 000000000000..934f51c67ddf --- /dev/null +++ b/pkgs/development/python-modules/unicode-rbnf/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 075586b9db5c..4ac9086431d5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 {