python3Packages.mandown: init at 1.5.0
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
5efab0a0bf
commit
c884a7d5b7
65
pkgs/development/python-modules/mandown/default.nix
Normal file
65
pkgs/development/python-modules/mandown/default.nix
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, poetry-core
|
||||||
|
, beautifulsoup4
|
||||||
|
, comicon
|
||||||
|
, feedparser
|
||||||
|
, filetype
|
||||||
|
, lxml
|
||||||
|
, natsort
|
||||||
|
, pillow
|
||||||
|
, python-slugify
|
||||||
|
, requests
|
||||||
|
, typer
|
||||||
|
, pyside6
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "mandown";
|
||||||
|
version = "1.5.0";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "potatoeggy";
|
||||||
|
repo = "mandown";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-ph+1bb1jhqqDE2d4F8lTf7LAzN7DWpDTGn8qhCiccKA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
beautifulsoup4
|
||||||
|
comicon
|
||||||
|
feedparser
|
||||||
|
filetype
|
||||||
|
lxml
|
||||||
|
natsort
|
||||||
|
pillow
|
||||||
|
python-slugify
|
||||||
|
requests
|
||||||
|
typer
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru.optional-dependencies = {
|
||||||
|
gui = [
|
||||||
|
pyside6
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml --replace 'typer = "^0.7.0"' 'typer = "^0"'
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "mandown" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Comic/manga/webtoon downloader and CBZ/EPUB/MOBI/PDF converter";
|
||||||
|
homepage = "https://github.com/potatoeggy/mandown";
|
||||||
|
license = licenses.agpl3Only;
|
||||||
|
maintainers = with maintainers; [ Scrumplex ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6429,6 +6429,8 @@ self: super: with self; {
|
||||||
|
|
||||||
managesieve = callPackage ../development/python-modules/managesieve { };
|
managesieve = callPackage ../development/python-modules/managesieve { };
|
||||||
|
|
||||||
|
mandown = callPackage ../development/python-modules/mandown { };
|
||||||
|
|
||||||
manhole = callPackage ../development/python-modules/manhole { };
|
manhole = callPackage ../development/python-modules/manhole { };
|
||||||
|
|
||||||
manimpango = callPackage ../development/python-modules/manimpango {
|
manimpango = callPackage ../development/python-modules/manimpango {
|
||||||
|
|
Loading…
Reference in a new issue