mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
webtoon_downloader: migrate to by-name
This commit is contained in:
parent
c8aa9c7834
commit
d9ec2e805c
2 changed files with 0 additions and 1 deletions
63
nix/packages/by-name/webtoon_downloader/package.nix
Normal file
63
nix/packages/by-name/webtoon_downloader/package.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
python3,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
}:
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "webtoon_downloader";
|
||||
version = "2.0.0";
|
||||
|
||||
pyproject = true;
|
||||
src =
|
||||
# Don't use fetchPypi because it doesn't have tests
|
||||
# Fetching the source from GitHub works better
|
||||
fetchFromGitHub {
|
||||
owner = "Zehina";
|
||||
repo = "Webtoon-Downloader";
|
||||
rev = "f6c4ea949db4e48b0139664a9c33120fb3a2a6b2";
|
||||
hash = "sha256-jbxSXlM6uuROrxV0v6pd3eGnupp5AXQMpflQ2QnrekI=";
|
||||
};
|
||||
|
||||
build-system = with python3.pkgs; [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
dependencies = with python3.pkgs; [
|
||||
aiofiles
|
||||
beautifulsoup4
|
||||
furl
|
||||
httpx
|
||||
h2
|
||||
lxml
|
||||
pillow
|
||||
pymupdf
|
||||
rich
|
||||
rich-click
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"aiofiles"
|
||||
"httpx"
|
||||
"lxml"
|
||||
"pillow"
|
||||
];
|
||||
|
||||
pythonImportsCheck = ["webtoon_downloader"];
|
||||
|
||||
nativeCheckInputs = with python3.pkgs; [
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
"tests/test_extractors.py" # requires network
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Webtoons Scraper able to download all chapters of any series wanted";
|
||||
homepage = "https://github.com/Zehina/Webtoon-Downloader";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "webtoon-downloader";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue