depot/third_party/nixpkgs/pkgs/tools/misc/mloader/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

35 lines
798 B
Nix

{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "mloader";
version = "1.1.9";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "81e4dc7117999d502e3345f8e32df8b16cca226b8b508976dde2de81a4cc2b19";
};
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 ];
};
}