[packages/python3-pooch] - new
qboosh
qboosh at pld-linux.org
Sun Nov 30 14:06:22 CET 2025
commit 3105cbd52a5b4719f86456e2c2ee81cccfa9c196
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 30 14:06:25 2025 +0100
- new
python3-pooch.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 88 insertions(+)
---
diff --git a/python3-pooch.spec b/python3-pooch.spec
new file mode 100644
index 0000000..32c5f1c
--- /dev/null
+++ b/python3-pooch.spec
@@ -0,0 +1,88 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+%bcond_with net_tests # tests using network
+
+Summary: A friend to fetch your data files
+Summary(pl.UTF-8): Przyjaciel do pobierania plików danych
+Name: python3-pooch
+Version: 1.8.2
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pooch/
+Source0: https://files.pythonhosted.org/packages/source/p/pooch/pooch-%{version}.tar.gz
+# Source0-md5: 7a333ef27c34984385c25f1e0b156185
+URL: https://pypi.org/project/pooch/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.7
+BuildRequires: python3-setuptools >= 1:45
+BuildRequires: python3-setuptools_scm >= 6.2
+%if %{with tests}
+BuildRequires: python3-packaging >= 20.0
+BuildRequires: python3-platformdirs >= 2.5.0
+BuildRequires: python3-pytest
+BuildRequires: python3-pytest-httpserver
+BuildRequires: python3-pytest-localftpserver
+BuildRequires: python3-requests >= 2.19.0
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.2
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Pooch is a Python library that can manage data by downloading files
+from a server (only when needed) and storing them locally in a data
+cache (a folder on your computer).
+
+- Pure Python and minimal dependencies.
+- Download files over HTTP, FTP, and from data repositories like
+ Zenodo and figshare.
+- Built-in post-processors to unzip/decompress the data after
+ download.
+- Designed to be extended: create custom downloaders and
+ post-processors.
+
+%description -l pl.UTF-8
+Pooch to biblioteka Pythona, zarządzająca danymi poprzez pobieranie
+plików z serwera (tylko w razie potrzeby) i zapisywanie ich lokalnie w
+pamięci podręcznej danych (katalogu na komputerze).
+
+- Czysty Python z minimalnymi zależnościami.
+- Pobieranie plików po HTTP, FTP oraz z repozytoriów danych, takich
+ jak Zenodo i figshare.
+- Wbudowane postprocesory do dekompresji (unzip itp.) danych po
+ pobraniu.
+- Zaprojektowana jako rozszerzalna: umożliwia tworzenie własnych
+ funkcji pobierających i postprocesorów.
+
+%prep
+%setup -q -n pooch-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_httpserver.pytest_plugin,pytest_localftpserver.plugin \
+%{__python3} -m pytest pooch %{!?with_net_tests:-m 'not network'}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/pooch/tests
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS.md CITATION.rst LICENSE.txt README.md
+%{py3_sitescriptdir}/pooch
+%{py3_sitescriptdir}/pooch-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pooch.git/commitdiff/3105cbd52a5b4719f86456e2c2ee81cccfa9c196
More information about the pld-cvs-commit
mailing list