compiled webcomix with nix
This commit is contained in:
parent
7f052f6098
commit
dc61c454d5
@ -2,6 +2,7 @@
|
|||||||
python3Packages,
|
python3Packages,
|
||||||
gallery-dl,
|
gallery-dl,
|
||||||
ffmpeg,
|
ffmpeg,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -25,5 +26,6 @@ python3Packages.buildPythonApplication {
|
|||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
gallery-dl
|
gallery-dl
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
(pkgs.callPackage ../../pkgs/webcomix/default.nix { })
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
51
pkgs/webcomix/default.nix
Normal file
51
pkgs/webcomix/default.nix
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
python3Packages,
|
||||||
|
}:
|
||||||
|
|
||||||
|
python3Packages.buildPythonApplication rec {
|
||||||
|
pname = "webcomix";
|
||||||
|
version = "3.11.0";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "J-CPelletier";
|
||||||
|
repo = "webcomix";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-Y16+/9TnECMkppgI/BeAbTLWt0M4V/xn1+hM4ILp/+g=";
|
||||||
|
};
|
||||||
|
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 = "14.0"'
|
||||||
|
'';
|
||||||
|
build-system = [
|
||||||
|
python3Packages.poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = with python3Packages; [
|
||||||
|
click
|
||||||
|
tqdm
|
||||||
|
scrapy
|
||||||
|
scrapy-splash
|
||||||
|
scrapy-fake-useragent
|
||||||
|
pytest-rerunfailures
|
||||||
|
docker
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
|
'';
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Webcomic downloader";
|
||||||
|
homepage = "https://github.com/J-CPelletier/webcomix";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ CaptainJawZ ];
|
||||||
|
mainProgram = "webcomix";
|
||||||
|
};
|
||||||
|
}
|
||||||
1
pkgs/webcomix/result
Symbolic link
1
pkgs/webcomix/result
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/nix/store/p910cdgikmg5z8yy126gl0wif7hpg0mm-webcomix-3.11.0
|
||||||
Loading…
x
Reference in New Issue
Block a user