summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 13:27:56 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 13:27:56 +0000
commit1227ab80d02ff9ef8829ac27f50276f83dd49237 (patch)
tree2d39a5be5038e070862151ace05cb48581d08d8d
parent9147c153c7f980870507ea6d80d1d23527f2ae98 (diff)
automatic import of python-pyrogram
-rw-r--r--.gitignore1
-rw-r--r--python-pyrogram.spec299
-rw-r--r--sources1
3 files changed, 301 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d691fcc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Pyrogram-2.0.103.tar.gz
diff --git a/python-pyrogram.spec b/python-pyrogram.spec
new file mode 100644
index 0000000..c5e2093
--- /dev/null
+++ b/python-pyrogram.spec
@@ -0,0 +1,299 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Pyrogram
+Version: 2.0.103
+Release: 1
+Summary: Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
+License: LGPLv3
+URL: https://github.com/pyrogram
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f5/32/460a1cc4ef152d7eb3bf927542154fdfef7dec70979c690c08b479104478/Pyrogram-2.0.103.tar.gz
+BuildArch: noarch
+
+Requires: python3-pyaes
+Requires: python3-pysocks
+
+%description
+<p align="center">
+ <a href="https://github.com/pyrogram/pyrogram">
+ <img src="https://docs.pyrogram.org/_static/pyrogram.png" alt="Pyrogram" width="128">
+ </a>
+ <br>
+ <b>Telegram MTProto API Framework for Python</b>
+ <br>
+ <a href="https://pyrogram.org">
+ Homepage
+ </a>
+ •
+ <a href="https://docs.pyrogram.org">
+ Documentation
+ </a>
+ •
+ <a href="https://docs.pyrogram.org/releases">
+ Releases
+ </a>
+ •
+ <a href="https://t.me/pyrogram">
+ News
+ </a>
+</p>
+
+## Pyrogram
+
+> Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
+
+``` python
+from pyrogram import Client, filters
+
+app = Client("my_account")
+
+
+@app.on_message(filters.private)
+async def hello(client, message):
+ await message.reply("Hello from Pyrogram!")
+
+
+app.run()
+```
+
+**Pyrogram** is a modern, elegant and asynchronous [MTProto API](https://docs.pyrogram.org/topics/mtproto-vs-botapi)
+framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
+identity (bot API alternative) using Python.
+
+### Support
+
+If you'd like to support Pyrogram, you can consider:
+
+- [Become a GitHub sponsor](https://github.com/sponsors/delivrance).
+- [Become a LiberaPay patron](https://liberapay.com/delivrance).
+- [Become an OpenCollective backer](https://opencollective.com/pyrogram).
+
+### Key Features
+
+- **Ready**: Install Pyrogram with pip and start building your applications right away.
+- **Easy**: Makes the Telegram API simple and intuitive, while still allowing advanced usages.
+- **Elegant**: Low-level details are abstracted and re-presented in a more convenient way.
+- **Fast**: Boosted up by [TgCrypto](https://github.com/pyrogram/tgcrypto), a high-performance cryptography library written in C.
+- **Type-hinted**: Types and methods are all type-hinted, enabling excellent editor support.
+- **Async**: Fully asynchronous (also usable synchronously if wanted, for convenience).
+- **Powerful**: Full access to Telegram's API to execute any official client action and more.
+
+### Installing
+
+``` bash
+pip3 install pyrogram
+```
+
+### Resources
+
+- Check out the docs at https://docs.pyrogram.org to learn more about Pyrogram, get started right
+away and discover more in-depth material for building your client applications.
+- Join the official channel at https://t.me/pyrogram and stay tuned for news, updates and announcements.
+
+
+%package -n python3-Pyrogram
+Summary: Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
+Provides: python-Pyrogram
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Pyrogram
+<p align="center">
+ <a href="https://github.com/pyrogram/pyrogram">
+ <img src="https://docs.pyrogram.org/_static/pyrogram.png" alt="Pyrogram" width="128">
+ </a>
+ <br>
+ <b>Telegram MTProto API Framework for Python</b>
+ <br>
+ <a href="https://pyrogram.org">
+ Homepage
+ </a>
+ •
+ <a href="https://docs.pyrogram.org">
+ Documentation
+ </a>
+ •
+ <a href="https://docs.pyrogram.org/releases">
+ Releases
+ </a>
+ •
+ <a href="https://t.me/pyrogram">
+ News
+ </a>
+</p>
+
+## Pyrogram
+
+> Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
+
+``` python
+from pyrogram import Client, filters
+
+app = Client("my_account")
+
+
+@app.on_message(filters.private)
+async def hello(client, message):
+ await message.reply("Hello from Pyrogram!")
+
+
+app.run()
+```
+
+**Pyrogram** is a modern, elegant and asynchronous [MTProto API](https://docs.pyrogram.org/topics/mtproto-vs-botapi)
+framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
+identity (bot API alternative) using Python.
+
+### Support
+
+If you'd like to support Pyrogram, you can consider:
+
+- [Become a GitHub sponsor](https://github.com/sponsors/delivrance).
+- [Become a LiberaPay patron](https://liberapay.com/delivrance).
+- [Become an OpenCollective backer](https://opencollective.com/pyrogram).
+
+### Key Features
+
+- **Ready**: Install Pyrogram with pip and start building your applications right away.
+- **Easy**: Makes the Telegram API simple and intuitive, while still allowing advanced usages.
+- **Elegant**: Low-level details are abstracted and re-presented in a more convenient way.
+- **Fast**: Boosted up by [TgCrypto](https://github.com/pyrogram/tgcrypto), a high-performance cryptography library written in C.
+- **Type-hinted**: Types and methods are all type-hinted, enabling excellent editor support.
+- **Async**: Fully asynchronous (also usable synchronously if wanted, for convenience).
+- **Powerful**: Full access to Telegram's API to execute any official client action and more.
+
+### Installing
+
+``` bash
+pip3 install pyrogram
+```
+
+### Resources
+
+- Check out the docs at https://docs.pyrogram.org to learn more about Pyrogram, get started right
+away and discover more in-depth material for building your client applications.
+- Join the official channel at https://t.me/pyrogram and stay tuned for news, updates and announcements.
+
+
+%package help
+Summary: Development documents and examples for Pyrogram
+Provides: python3-Pyrogram-doc
+%description help
+<p align="center">
+ <a href="https://github.com/pyrogram/pyrogram">
+ <img src="https://docs.pyrogram.org/_static/pyrogram.png" alt="Pyrogram" width="128">
+ </a>
+ <br>
+ <b>Telegram MTProto API Framework for Python</b>
+ <br>
+ <a href="https://pyrogram.org">
+ Homepage
+ </a>
+ •
+ <a href="https://docs.pyrogram.org">
+ Documentation
+ </a>
+ •
+ <a href="https://docs.pyrogram.org/releases">
+ Releases
+ </a>
+ •
+ <a href="https://t.me/pyrogram">
+ News
+ </a>
+</p>
+
+## Pyrogram
+
+> Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
+
+``` python
+from pyrogram import Client, filters
+
+app = Client("my_account")
+
+
+@app.on_message(filters.private)
+async def hello(client, message):
+ await message.reply("Hello from Pyrogram!")
+
+
+app.run()
+```
+
+**Pyrogram** is a modern, elegant and asynchronous [MTProto API](https://docs.pyrogram.org/topics/mtproto-vs-botapi)
+framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
+identity (bot API alternative) using Python.
+
+### Support
+
+If you'd like to support Pyrogram, you can consider:
+
+- [Become a GitHub sponsor](https://github.com/sponsors/delivrance).
+- [Become a LiberaPay patron](https://liberapay.com/delivrance).
+- [Become an OpenCollective backer](https://opencollective.com/pyrogram).
+
+### Key Features
+
+- **Ready**: Install Pyrogram with pip and start building your applications right away.
+- **Easy**: Makes the Telegram API simple and intuitive, while still allowing advanced usages.
+- **Elegant**: Low-level details are abstracted and re-presented in a more convenient way.
+- **Fast**: Boosted up by [TgCrypto](https://github.com/pyrogram/tgcrypto), a high-performance cryptography library written in C.
+- **Type-hinted**: Types and methods are all type-hinted, enabling excellent editor support.
+- **Async**: Fully asynchronous (also usable synchronously if wanted, for convenience).
+- **Powerful**: Full access to Telegram's API to execute any official client action and more.
+
+### Installing
+
+``` bash
+pip3 install pyrogram
+```
+
+### Resources
+
+- Check out the docs at https://docs.pyrogram.org to learn more about Pyrogram, get started right
+away and discover more in-depth material for building your client applications.
+- Join the official channel at https://t.me/pyrogram and stay tuned for news, updates and announcements.
+
+
+%prep
+%autosetup -n Pyrogram-2.0.103
+
+%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-Pyrogram -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.103-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..02f51e0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+fe9f08c03dcbed427c733eac6b9d564e Pyrogram-2.0.103.tar.gz