depot/third_party/nixpkgs/pkgs/development/python-modules/mandown/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

69 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonRelaxDepsHook
, beautifulsoup4
, comicon
, feedparser
, filetype
, lxml
, natsort
, pillow
, python-slugify
, requests
, typer
, pyside6
}:
buildPythonPackage rec {
pname = "mandown";
version = "1.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "potatoeggy";
repo = "mandown";
rev = "refs/tags/v${version}";
hash = "sha256-oHa7/2fv+BG5KIKFIICYBqddub5SokDvAI6frbVwGSo=";
};
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"pillow"
"typer"
];
propagatedBuildInputs = [
beautifulsoup4
comicon
feedparser
filetype
lxml
natsort
pillow
python-slugify
requests
typer
];
passthru.optional-dependencies = {
gui = [
pyside6
];
};
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 ];
};
}