diff options
Diffstat (limited to 'python-pykrakenapi.spec')
| -rw-r--r-- | python-pykrakenapi.spec | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/python-pykrakenapi.spec b/python-pykrakenapi.spec new file mode 100644 index 0000000..1538ce9 --- /dev/null +++ b/python-pykrakenapi.spec @@ -0,0 +1,93 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pykrakenapi +Version: 0.3.1 +Release: 1 +Summary: A Python implementation of the Kraken API. +License: GNU GPL +URL: https://github.com/dominiktraxl/pykrakenapi/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/23/28/31c2e08ac5a0c9e4034248f9712fca887871153ad2ba8b7ac76c37b83d8e/pykrakenapi-0.3.1.tar.gz +BuildArch: noarch + + +%description +Implements the Kraken API methods using the low-level krakenex python +package. See +https://www.kraken.com/help/api +and +https://github.com/veox/python3-krakenex +Whenever convenient, methods return pandas.DataFrame objects. Also implements a +call rate limiter based on your Kraken tier level, as well as automatic retries +on HTTPErrors/Kraken API Errors. + +%package -n python3-pykrakenapi +Summary: A Python implementation of the Kraken API. +Provides: python-pykrakenapi +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pykrakenapi +Implements the Kraken API methods using the low-level krakenex python +package. See +https://www.kraken.com/help/api +and +https://github.com/veox/python3-krakenex +Whenever convenient, methods return pandas.DataFrame objects. Also implements a +call rate limiter based on your Kraken tier level, as well as automatic retries +on HTTPErrors/Kraken API Errors. + +%package help +Summary: Development documents and examples for pykrakenapi +Provides: python3-pykrakenapi-doc +%description help +Implements the Kraken API methods using the low-level krakenex python +package. See +https://www.kraken.com/help/api +and +https://github.com/veox/python3-krakenex +Whenever convenient, methods return pandas.DataFrame objects. Also implements a +call rate limiter based on your Kraken tier level, as well as automatic retries +on HTTPErrors/Kraken API Errors. + +%prep +%autosetup -n pykrakenapi-0.3.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-pykrakenapi -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.1-1 +- Package Spec generated |
