From 5f29b8a092430d8dc3fbe0a7d1d1606c62f0279a Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 23 Nov 2025 09:05:19 -0800 Subject: [PATCH] add: pyee (#7587) (#7594) --- anda/langs/python/pyee/anda.hcl | 6 ++++ anda/langs/python/pyee/pyee.spec | 48 ++++++++++++++++++++++++++++++ anda/langs/python/pyee/update.rhai | 1 + 3 files changed, 55 insertions(+) create mode 100644 anda/langs/python/pyee/anda.hcl create mode 100644 anda/langs/python/pyee/pyee.spec create mode 100644 anda/langs/python/pyee/update.rhai diff --git a/anda/langs/python/pyee/anda.hcl b/anda/langs/python/pyee/anda.hcl new file mode 100644 index 0000000000..da2fd3e670 --- /dev/null +++ b/anda/langs/python/pyee/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "pyee.spec" + } +} diff --git a/anda/langs/python/pyee/pyee.spec b/anda/langs/python/pyee/pyee.spec new file mode 100644 index 0000000000..a79d7b7814 --- /dev/null +++ b/anda/langs/python/pyee/pyee.spec @@ -0,0 +1,48 @@ +%global pypi_name pyee +%global _desc A rough port of Node.js's EventEmitter to Python with a few tricks of its own. + +Name: python-%{pypi_name} +Version: 13.0.0 +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/jfhbrook/pyee +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} +Provides: pyee +%{?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 pyee + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md DEVELOPMENT.md CONTRIBUTORS.md CHANGELOG.md +%license LICENSE +%python3_sitelib/%{pypi_name}/__pycache__/*.cpython-*.pyc +%python3_sitelib/%{pypi_name}/*.py + +%changelog +* Sun Nov 30 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/pyee/update.rhai b/anda/langs/python/pyee/update.rhai new file mode 100644 index 0000000000..1008663f0c --- /dev/null +++ b/anda/langs/python/pyee/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("pyee"));