{ lib, fetchFromGitHub, buildPythonApplication, poetry-core, click, tqdm, scrapy, scrapy-splash, scrapy-fake-useragent, pytest-rerunfailures, docker, }: buildPythonApplication rec { pname = "webcomix"; version = "3.12.0"; pyproject = true; src = fetchFromGitHub { owner = "J-CPelletier"; repo = "webcomix"; rev = version; hash = "sha256-Vsn6Ju4+SG8iOCxnqixnpi9apr8Nc4/mFjpjipPud6g="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "poetry>=1.2.0" poetry-core \ --replace-fail "poetry.masonry.api" "poetry.core.masonry.api" \ --replace-fail 'pytest-rerunfailures = "^11.1.2"' 'pytest-rerunfailures = "15.0"' ''; build-system = [ poetry-core ]; dependencies = [ click tqdm scrapy scrapy-splash scrapy-fake-useragent pytest-rerunfailures docker ]; preCheck = '' export HOME=$(mktemp -d) ''; doCheck = false; # Skip runtime dependency check due to version mismatches with nixpkgs dontCheckRuntimeDeps = true; meta = { description = "Webcomic downloader"; homepage = "https://github.com/J-CPelletier/webcomix"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ CaptainJawZ ]; mainProgram = "webcomix"; }; }