python312Packages.mandown: refactor

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>

+18 -19
+1 -3
pkgs/by-name/co/comic-mandown/package.nix
··· 6 6 }: 7 7 let 8 8 mandown' = python3Packages.mandown.overridePythonAttrs (prev: { 9 - propagatedBuildInputs = 10 - prev.propagatedBuildInputs 11 - ++ lib.optionals withGUI prev.optional-dependencies.gui; 9 + dependencies = prev.dependencies ++ lib.optionals withGUI prev.optional-dependencies.gui; 12 10 }); 13 11 mandownApp = python3Packages.toPythonApplication mandown'; 14 12 in
+17 -16
pkgs/development/python-modules/mandown/default.nix
··· 1 1 { 2 - lib, 2 + beautifulsoup4, 3 3 buildPythonPackage, 4 - fetchFromGitHub, 5 - poetry-core, 6 - beautifulsoup4, 7 4 comicon, 8 5 feedparser, 6 + fetchFromGitHub, 9 7 filetype, 8 + lib, 10 9 lxml, 11 10 natsort, 12 11 nix-update-script, 13 12 pillow, 13 + poetry-core, 14 + pyside6, 14 15 python-slugify, 15 16 requests, 16 17 typer, 17 - pyside6, 18 18 }: 19 19 20 20 buildPythonPackage rec { ··· 29 29 hash = "sha256-xoRUGtZMM1l3gCtF1wFHBo3vTEGJcNxqkO/yeTuEke8="; 30 30 }; 31 31 32 - nativeBuildInputs = [ 32 + build-system = [ 33 33 poetry-core 34 34 ]; 35 35 36 - pythonRelaxDeps = [ 37 - "pillow" 38 - "typer" 39 - ]; 40 - 41 - propagatedBuildInputs = [ 36 + dependencies = [ 42 37 beautifulsoup4 43 38 comicon 44 39 feedparser ··· 51 46 typer 52 47 ]; 53 48 49 + pythonRelaxDeps = [ 50 + "pillow" 51 + "typer" 52 + ]; 53 + 54 54 optional-dependencies = { 55 55 gui = [ pyside6 ]; 56 - updateScript = nix-update-script { }; 57 56 }; 58 57 59 58 pythonImportsCheck = [ "mandown" ]; 60 59 61 - meta = with lib; { 60 + passthru.updateScript = nix-update-script { }; 61 + 62 + meta = { 62 63 changelog = "https://github.com/potatoeggy/mandown/releases/tag/v${version}"; 63 64 description = "Comic/manga/webtoon downloader and CBZ/EPUB/MOBI/PDF converter"; 64 65 homepage = "https://github.com/potatoeggy/mandown"; 65 - license = licenses.agpl3Only; 66 - maintainers = with maintainers; [ Scrumplex ]; 66 + license = lib.licenses.agpl3Only; 67 + maintainers = with lib.maintainers; [ Scrumplex ]; 67 68 }; 68 69 }