depot/third_party/nixpkgs/pkgs/development/python-modules/mandown/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

72 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonRelaxDepsHook
, beautifulsoup4
, comicon
, feedparser
, filetype
, lxml
, natsort
, nix-update-script
, pillow
, python-slugify
, requests
, typer
, pyside6
}:
buildPythonPackage rec {
pname = "mandown";
version = "1.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "potatoeggy";
repo = "mandown";
rev = "refs/tags/v${version}";
hash = "sha256-vzvidtfBwbIV6cIUjQQIezN12VfxsBOKODoSChz2VDA=";
};
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"lxml"
"pillow"
"typer"
];
propagatedBuildInputs = [
beautifulsoup4
comicon
feedparser
filetype
lxml
natsort
pillow
python-slugify
requests
typer
];
passthru.optional-dependencies = {
gui = [
pyside6
];
updateScript = nix-update-script { };
};
pythonImportsCheck = [ "mandown" ];
meta = with lib; {
changelog = "https://github.com/potatoeggy/mandown/releases/tag/v${version}";
description = "Comic/manga/webtoon downloader and CBZ/EPUB/MOBI/PDF converter";
homepage = "https://github.com/potatoeggy/mandown";
license = licenses.agpl3Only;
maintainers = with maintainers; [ Scrumplex ];
};
}