[packages/python-slumber] - new

qboosh qboosh at pld-linux.org
Sat Dec 13 21:52:38 CET 2025


commit 399a7ee7f4e4bd3d10240c7f26f07da8b73daa8b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 13 21:52:51 2025 +0100

    - new

 python-slumber.spec | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 121 insertions(+)
---
diff --git a/python-slumber.spec b/python-slumber.spec
new file mode 100644
index 0000000..7225360
--- /dev/null
+++ b/python-slumber.spec
@@ -0,0 +1,121 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (not in sdist)
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	A library that makes consuming a REST API easier and more convenient
+Summary(pl.UTF-8):	Biblioteka ułatwiająca konsumowanie REST API
+Name:		python-slumber
+Version:	0.7.1
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/slumber/
+Source0:	https://files.pythonhosted.org/packages/source/s/slumber/slumber-%{version}.tar.gz
+# Source0-md5:	58fe531e23b7324b9fbd3faa89a115e2
+URL:		https://pypi.org/project/slumber/
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.6
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-mock
+BuildRequires:	python-requests
+BuildRequires:	python-unittest2
+%endif
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-mock
+BuildRequires:	python3-requests
+%endif
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Slumber is a Python library that provides a convenient yet powerful
+object-oriented interface to ReSTful APIs. It acts as a wrapper around
+the excellent requests library and abstracts away the handling of
+URLs, serialization, and request processing.
+
+%description -l pl.UTF-8
+Slumber to biblioteka Pythona dostarczająca wygodny i w pełni
+funkcjonalny, zorientowany obiektowo interfejs do API REST-owych.
+Działa jako obudowanie świetnej biblioteki requests i abstrahuje
+obsługę URL-i, serializację i przetwarzanie żądań.
+
+%package -n python3-slumber
+Summary:	A library that makes consuming a REST API easier and more convenient
+Summary(pl.UTF-8):	Biblioteka ułatwiająca konsumowanie REST API
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.2
+
+%description -n python3-slumber
+Slumber is a Python library that provides a convenient yet powerful
+object-oriented interface to ReSTful APIs. It acts as a wrapper around
+the excellent requests library and abstracts away the handling of
+URLs, serialization, and request processing.
+
+%description -n python3-slumber -l pl.UTF-8
+Slumber to biblioteka Pythona dostarczająca wygodny i w pełni
+funkcjonalny, zorientowany obiektowo interfejs do API REST-owych.
+Działa jako obudowanie świetnej biblioteki requests i abstrahuje
+obsługę URL-i, serializację i przetwarzanie żądań.
+
+%prep
+%setup -q -n slumber-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+%{__python} -m unittest discover -s tests
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+%{__python3} -m unittest discover -s tests
+%endif
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst LICENSE.txt README.rst docs/*.rst
+%{py_sitescriptdir}/slumber
+%{py_sitescriptdir}/slumber-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-slumber
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst LICENSE.txt README.rst docs/*.rst
+%{py3_sitescriptdir}/slumber
+%{py3_sitescriptdir}/slumber-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-slumber.git/commitdiff/399a7ee7f4e4bd3d10240c7f26f07da8b73daa8b



More information about the pld-cvs-commit mailing list