惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Jina AI
Jina AI
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
Hugging Face - Blog
Hugging Face - Blog
阮一峰的网络日志
阮一峰的网络日志
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
V
V2EX
博客园 - 叶小钗
雷峰网
雷峰网
小众软件
小众软件
量子位
V
Visual Studio Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
Martin Fowler
Martin Fowler
G
Google Developers Blog
博客园_首页
博客园 - Franky
有赞技术团队
有赞技术团队
宝玉的分享
宝玉的分享

AUR Newest Packages

AUR (en) - linuxqq-clipsync-git AUR (en) - libtslitex-git AUR (en) - libtslitex-git AUR (en) - carton-appimage AUR (en) - veila-git AUR (en) - veila-bin AUR (en) - vigil-baseline AUR (en) - byedroid AUR (en) - neovim-base16-git AUR (en) - pirata AUR (en) - rpi-imager-git-non-root AUR (en) - python-fastapi-sso AUR (en) - tmux-ai-titles AUR (en) - zeed-bin AUR (en) - bclone-bin AUR (en) - dwl-git-azerty AUR (en) - auggie-bin AUR (en) - libspatialaudio-git AUR (en) - libspatialaudio AUR (en) - miniupnpd-iptables-legacy AUR (en) - miniupnpd-nft AUR (en) - jeeves-bin AUR (en) - opennow AUR (en) - rotki AUR (en) - kapi-bin AUR (en) - classfi-bin AUR (en) - classfi-git AUR (en) - classfi AUR (en) - giff-git AUR (en) - budget-tracker-bin
AUR (en) - python-qbittorrent-api
2026-06-22 · via AUR Newest Packages
LookupError: setuptools-scm was unable to detect version for /home/fryfrog/.cache/paru/clone/python-qbittorrent-api/src/qbittorrent-api-2023.11.55.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj

Looks like they suggest using the pypi instead of the github tar balls?

python-setuptools should be in makedepends, it does not build without

python-build and python-installer are needed to make this package and should be added to makedepends. Thanks!

One of the tests, conftest.py, expects the sys.path to be like "$_pkgname" and not "$_pkgname-$pkgver".

I'm sure there's a few ways you could fix this, such as changing extract path or even deleting the assert - I'm not sure why the check is there in the first place, but I just opted to patch the test to accept an env var to override basepath

conftest.patch:

--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -29,7 +29,7 @@

 BASE_PATH = sys_path[0]
 RESOURCES = path.join(BASE_PATH, "tests", "resources")
-assert BASE_PATH.split("/")[-1] == "qbittorrent-api"
+assert BASE_PATH.split("/")[-1] == environ.get("BASE_PATH", "qbittorrent-api")

 _check_limit = 10

And then patched the PKGBUILD as such:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,9 +11,16 @@
 depends=('python' 'python-requests' 'python-urllib3' 'python-six')
 makedepends=('python-setuptools')
 checkdepends=('python-pytest')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/rmartin16/qbittorrent-api/archive/refs/tags/v$pkgver.tar.gz")
-sha256sums=('43a0d56a66834efb349e7b26b7bba89d803513f4479481e9ac6b033e2513ee91')
-b2sums=('33ecc9e300337976bb893812d0e34eb2b08f481ca3afc60db8d75ecfa1cd2c79a37d0ea892f5dd55b43ade327f458294525290c16805bf60070f04214f882e87')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/rmartin16/qbittorrent-api/archive/refs/tags/v$pkgver.tar.gz" 'conftest.patch')
+sha256sums=('43a0d56a66834efb349e7b26b7bba89d803513f4479481e9ac6b033e2513ee91'
+            'a1ab4a551b19dbc9857bf613fb65ebc5ce57709c6c41c57fc86391e61eed3241')
+b2sums=('33ecc9e300337976bb893812d0e34eb2b08f481ca3afc60db8d75ecfa1cd2c79a37d0ea892f5dd55b43ade327f458294525290c16805bf60070f04214f882e87'
+        'f53682e980e596cf7e98a1356d767155e74dc9b4c488f9a81c76da1b8b2f84e4f6515dfe31cd9dd2e705505d851b85a67b2ab763883c887d592c8251aba816ad')
+
+prepare() {
+  cd "$_pkgname-$pkgver"
+  patch -Np1 -i ../conftest.patch
+}

 build() {
   cd "$_pkgname-$pkgver"
@@ -24,8 +31,7 @@
 check() {
   cd "$_pkgname-$pkgver"

-  export PYTHONPATH="build/lib"
-  python setup.py test
+  env PYTHONPATH="build/lib" BASE_PATH="$_pkgname-$pkgver" python setup.py test
 }

 package() {