depot/third_party/nixpkgs/pkgs/tools/misc/mloader/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

36 lines
815 B
Nix

{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "mloader";
version = "1.1.11";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-SFFjv4RWh1JZtxkDmaun35gKi5xty1ifIItwaz3lot4=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "protobuf~=3.6" "protobuf"
'';
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 ];
mainProgram = "mloader";
};
}