From 0b12e1e421e6ead40ee3825b9c453b7efbacd40c Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 28 Jun 2026 10:01:55 -0500 Subject: [PATCH] add: python-nmcli (#13475) (#13485) * add: python-nmcli for nmgui * Update anda/langs/python/nmcli/python-nmcli.spec * bruh * bdep pip[] * setuptools --------- (cherry picked from commit e040ec765fb01eac91421a8a9c3a8880391ad0c0) Signed-off-by: madomado Co-authored-by: madomado Co-authored-by: hamachitan[bot] <252235638+hamachitan[bot]@users.noreply.github.com> --- anda/langs/python/nmcli/anda.hcl | 5 +++ anda/langs/python/nmcli/python-nmcli.spec | 51 +++++++++++++++++++++++ anda/langs/python/nmcli/update.rhai | 1 + 3 files changed, 57 insertions(+) create mode 100644 anda/langs/python/nmcli/anda.hcl create mode 100644 anda/langs/python/nmcli/python-nmcli.spec create mode 100644 anda/langs/python/nmcli/update.rhai diff --git a/anda/langs/python/nmcli/anda.hcl b/anda/langs/python/nmcli/anda.hcl new file mode 100644 index 0000000000..7ff0d8d5ec --- /dev/null +++ b/anda/langs/python/nmcli/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "python-nmcli.spec" + } +} diff --git a/anda/langs/python/nmcli/python-nmcli.spec b/anda/langs/python/nmcli/python-nmcli.spec new file mode 100644 index 0000000000..a795b6258a --- /dev/null +++ b/anda/langs/python/nmcli/python-nmcli.spec @@ -0,0 +1,51 @@ +Name: python-nmcli +Version: 1.8.0 +Release: 1%?dist +Summary: A python wrapper library for the network-manager cli client + +License: MIT +URL: https://github.com/ushiboy/nmcli +Source: %{pypi_source nmcli} +Packager: madonuko + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-setuptools + + +%global _description %{expand: +nmcli is a python wrapper library for the network-manager cli client.} + +%description %_description + +%package -n python3-nmcli +Summary: %{summary} + +%description -n python3-nmcli %_description + + +%prep +%autosetup -p1 -n nmcli-%{version} + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files nmcli + + +%check +%pyproject_check_import + + +%files -n python3-nmcli -f %{pyproject_files} +%doc README.md +%license LICENSE.txt + + +%changelog +* Sun Jun 28 2026 madonuko - 1.8.0-1 +- Initial package diff --git a/anda/langs/python/nmcli/update.rhai b/anda/langs/python/nmcli/update.rhai new file mode 100644 index 0000000000..fbb54578f1 --- /dev/null +++ b/anda/langs/python/nmcli/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("nmcli"));