2023-05-25 14:07:31 +00:00
|
|
|
{ lib, python3Packages, fetchPypi }:
|
2022-07-16 04:20:00 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "mloader";
|
2024-06-24 13:27:38 +00:00
|
|
|
version = "1.1.12";
|
2022-09-19 01:55:57 +00:00
|
|
|
format = "setuptools";
|
2022-07-16 04:20:00 +00:00
|
|
|
|
2023-05-25 14:07:31 +00:00
|
|
|
src = fetchPypi {
|
2022-07-20 04:20:00 +00:00
|
|
|
inherit pname version;
|
2024-07-13 16:25:56 +00:00
|
|
|
hash = "sha256-0o4FvhuFudNSEL6fwBVqxldaNePbbidY9utDqXiLRNc=";
|
2022-07-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2022-09-19 01:55:57 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "protobuf~=3.6" "protobuf"
|
|
|
|
'';
|
|
|
|
|
2022-07-16 04:20:00 +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;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "mloader";
|
2022-07-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
}
|