From 0f763afcaa635cf43f796461d9764940ce863fec Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 19 Jan 2026 23:41:50 -0800 Subject: [PATCH] add: snakeoil (#9344) (#9358) (cherry picked from commit 32a689815e10e3c7465a23223c44e5757b176c6e) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/python/snakeoil/anda.hcl | 6 ++++ anda/langs/python/snakeoil/snakeoil.spec | 45 ++++++++++++++++++++++++ anda/langs/python/snakeoil/update.rhai | 1 + 3 files changed, 52 insertions(+) create mode 100644 anda/langs/python/snakeoil/anda.hcl create mode 100644 anda/langs/python/snakeoil/snakeoil.spec create mode 100644 anda/langs/python/snakeoil/update.rhai diff --git a/anda/langs/python/snakeoil/anda.hcl b/anda/langs/python/snakeoil/anda.hcl new file mode 100644 index 0000000000..6202943880 --- /dev/null +++ b/anda/langs/python/snakeoil/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "snakeoil.spec" + } +} diff --git a/anda/langs/python/snakeoil/snakeoil.spec b/anda/langs/python/snakeoil/snakeoil.spec new file mode 100644 index 0000000000..206c78165b --- /dev/null +++ b/anda/langs/python/snakeoil/snakeoil.spec @@ -0,0 +1,45 @@ +%global pypi_name snakeoil +%global _desc A python library that implements optimized versions of common functionality. + +Name: python-%{pypi_name} +Version: 0.11.0 +Release: 1%?dist +Summary: Implements optimized versions of common functionality +License: BSD-3-Clause +URL: https://pkgcore.github.io/snakeoil +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-flit-core +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 snakeoil-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files snakeoil + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst +%license LICENSE + +%changelog +* Mon Jan 19 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/snakeoil/update.rhai b/anda/langs/python/snakeoil/update.rhai new file mode 100644 index 0000000000..319c737bea --- /dev/null +++ b/anda/langs/python/snakeoil/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("snakeoil"));