2023-07-15 17:15:38 +00:00
|
|
|
{ lib, python3Packages, fetchPypi }:
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "mloader";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.1.11";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "setuptools";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2022-08-12 12:06:08 +00:00
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-SFFjv4RWh1JZtxkDmaun35gKi5xty1ifIItwaz3lot4=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "protobuf~=3.6" "protobuf"
|
|
|
|
'';
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
click
|
|
|
|
protobuf
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
# No tests in repository
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mloader" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line tool to download manga from mangaplus";
|
|
|
|
homepage = "https://github.com/hurlenko/mloader";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ marsam ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "mloader";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|