2024-05-26 00:39:51 +08:00
|
|
|
{
|
|
|
|
aiohttp,
|
|
|
|
apscheduler,
|
|
|
|
beautifulsoup4,
|
|
|
|
brotli,
|
|
|
|
buildPythonPackage,
|
|
|
|
colorama,
|
|
|
|
fetchPypi,
|
|
|
|
httpx,
|
|
|
|
lib,
|
|
|
|
lxml,
|
|
|
|
pillow,
|
|
|
|
pycryptodomex,
|
2025-02-17 10:11:32 +08:00
|
|
|
pyjwt,
|
2024-05-26 00:39:51 +08:00
|
|
|
pyyaml,
|
|
|
|
qrcode,
|
|
|
|
qrcode-terminal,
|
|
|
|
rsa,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
tqdm,
|
|
|
|
yarl,
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bilibili-api-python";
|
2025-02-17 10:11:32 +08:00
|
|
|
version = "17.1.2";
|
2024-05-26 00:39:51 +08:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-10-29 07:00:04 -07:00
|
|
|
pname = "bilibili_api_python";
|
|
|
|
inherit version;
|
2025-02-17 10:11:32 +08:00
|
|
|
hash = "sha256-pZrn78/uIlivT+OSlNyrbO6vuxBgeigfdZ9AScOM1Ak=";
|
2024-05-26 00:39:51 +08:00
|
|
|
};
|
|
|
|
|
2025-02-17 10:11:32 +08:00
|
|
|
# The upstream uses requirements.txt, which overly strict version constraints.
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"beautifulsoup4"
|
|
|
|
"lxml"
|
|
|
|
];
|
2024-05-26 00:39:51 +08:00
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools-scm
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
aiohttp
|
|
|
|
beautifulsoup4
|
|
|
|
colorama
|
|
|
|
lxml
|
|
|
|
pyyaml
|
|
|
|
brotli
|
|
|
|
httpx
|
|
|
|
qrcode
|
|
|
|
apscheduler
|
|
|
|
rsa
|
|
|
|
pillow
|
|
|
|
tqdm
|
|
|
|
yarl
|
|
|
|
pycryptodomex
|
2025-02-17 10:11:32 +08:00
|
|
|
pyjwt
|
2024-05-26 00:39:51 +08:00
|
|
|
qrcode-terminal
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests require network
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "bilibili_api" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/Nemo2011/bilibili-api/releases/tag/${version}";
|
|
|
|
description = "Python module providing convenient integration for various Bilibili API along with some additional common features";
|
|
|
|
homepage = "https://nemo2011.github.io/bilibili-api";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ moraxyc ];
|
|
|
|
};
|
|
|
|
}
|