python3Packages.emoji-country-flag: init at 2.1.0

Co-authored-by: SkohTV <contact@skoh.dev>
This commit is contained in:
aleksana
2025-12-04 16:06:35 +08:00
co-authored by SkohTV
parent d3924737e2
commit c6709ff398
2 changed files with 50 additions and 0 deletions
@@ -0,0 +1,48 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
pytestCheckHook,
emoji,
}:
buildPythonPackage rec {
pname = "emoji-country-flag";
version = "2.1.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "cvzi";
repo = "flag";
tag = "v${version}";
hash = "sha256-Te3RJ+rHkr3q93C7hLE5xCZz91QC2IsFR0FluVEJOv4=";
};
build-system = [
setuptools
];
doCheck = true;
nativeCheckInputs = [
pytestCheckHook
emoji
];
pythonImportsCheck = [ "flag" ];
meta = {
description = "Flag emoji from country codes for Python";
homepage = "https://github.com/cvzi/flag";
changelog = "https://github.com/cvzi/flag/releases/tag/v${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
skohtv
aleksana
];
};
}
+2
View File
@@ -4837,6 +4837,8 @@ self: super: with self; {
emoji = callPackage ../development/python-modules/emoji { };
emoji-country-flag = callPackage ../development/python-modules/emoji-country-flag { };
emojis = callPackage ../development/python-modules/emojis { };
empty-files = callPackage ../development/python-modules/empty-files { };