From 956c02c427df58ca9263e6a6e05a9d60bbd02de2 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 7 Jan 2026 18:26:33 -0800 Subject: [PATCH] add: darkdetect (#8972) (#8978) (cherry picked from commit e963593aef3d774fbce48133d6a6443757f51f7f) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/python/darkdetect/anda.hcl | 6 +++ anda/langs/python/darkdetect/darkdetect.spec | 51 ++++++++++++++++++++ anda/langs/python/darkdetect/update.rhai | 1 + 3 files changed, 58 insertions(+) create mode 100644 anda/langs/python/darkdetect/anda.hcl create mode 100644 anda/langs/python/darkdetect/darkdetect.spec create mode 100644 anda/langs/python/darkdetect/update.rhai diff --git a/anda/langs/python/darkdetect/anda.hcl b/anda/langs/python/darkdetect/anda.hcl new file mode 100644 index 0000000000..47864bd819 --- /dev/null +++ b/anda/langs/python/darkdetect/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "darkdetect.spec" + } +} diff --git a/anda/langs/python/darkdetect/darkdetect.spec b/anda/langs/python/darkdetect/darkdetect.spec new file mode 100644 index 0000000000..05f1797cd3 --- /dev/null +++ b/anda/langs/python/darkdetect/darkdetect.spec @@ -0,0 +1,51 @@ +%global pypi_name darkdetect +%global _desc Detect OS Dark Mode from Python. + +Name: python-%{pypi_name} +Version: 0.8.0 +Release: 1%?dist +Summary: Detect OS Dark Mode from Python +License: BSD-3-Clause +URL: https://github.com/albertosottile/darkdetect +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-setuptools + +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 + +%package -n python3-%{pypi_name}-doc +Summary: documentation for python3-%{pypi_name} + +%description -n python3-%{pypi_name}-doc +documentation for python3-%{pypi_name}. + +%prep +%autosetup -n darkdetect-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files darkdetect + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE + +%changelog +* Wed Jan 07 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/darkdetect/update.rhai b/anda/langs/python/darkdetect/update.rhai new file mode 100644 index 0000000000..f8474fb5f4 --- /dev/null +++ b/anda/langs/python/darkdetect/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("darkdetect"));