From 46427baa3f63583c7a3e23ddfdcfabcab73bb00e Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 14 Mar 2026 17:34:24 -0700 Subject: [PATCH] add: mistletoe (#10526) (#10530) (cherry picked from commit c671369b7be0497ad0c851102a137c7ac60822db) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/python/mistletoe/anda.hcl | 6 +++ anda/langs/python/mistletoe/mistletoe.spec | 46 ++++++++++++++++++++++ anda/langs/python/mistletoe/update.rhai | 1 + 3 files changed, 53 insertions(+) create mode 100644 anda/langs/python/mistletoe/anda.hcl create mode 100644 anda/langs/python/mistletoe/mistletoe.spec create mode 100644 anda/langs/python/mistletoe/update.rhai diff --git a/anda/langs/python/mistletoe/anda.hcl b/anda/langs/python/mistletoe/anda.hcl new file mode 100644 index 0000000000..a1447a5955 --- /dev/null +++ b/anda/langs/python/mistletoe/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "mistletoe.spec" + } +} diff --git a/anda/langs/python/mistletoe/mistletoe.spec b/anda/langs/python/mistletoe/mistletoe.spec new file mode 100644 index 0000000000..e19f0798e4 --- /dev/null +++ b/anda/langs/python/mistletoe/mistletoe.spec @@ -0,0 +1,46 @@ +%global pypi_name mistletoe +%global _desc A rough port of Node.js's EventEmitter to Python with a few tricks of its own. + +Name: python-%{pypi_name} +Version: 1.5.1 +Release: 1%?dist +Summary: A rough port of Node.js's EventEmitter to Python with a few tricks of its own +License: MIT +URL: https://github.com/miyuchina/mistletoe +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files mistletoe + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE +%{_bindir}/mistletoe + +%changelog +* Sat Mar 14 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/mistletoe/update.rhai b/anda/langs/python/mistletoe/update.rhai new file mode 100644 index 0000000000..1212b2716e --- /dev/null +++ b/anda/langs/python/mistletoe/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("mistletoe"));