New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kcc: init at 5.5.1 #61146
kcc: init at 5.5.1 #61146
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also encode the requirement for Python 3.3+ with:
disabled = !(pythonAtLeast "3.3");
pkgs/top-level/all-packages.nix
Outdated
@@ -9203,6 +9203,8 @@ in | |||
|
|||
kati = callPackage ../development/tools/build-managers/kati { }; | |||
|
|||
kcc = callPackage ../applications/graphics/kcc { }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kcc = callPackage ../applications/graphics/kcc { }; | |
kcc = python3Packages.callPackage ../applications/graphics/kcc { }; |
Then you don't need to use python3Packages
at all in the derivation and can take the python dependencies directly as argument.
{ lib, python3Packages }: | ||
|
||
python3Packages.buildPythonApplication rec { | ||
pname = "KindleComicConverter"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not be different from the attribute in top-level.nix
.
I'm divided on what to use here. On GitHub they use kcc
but on PyPi they use this...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plus we don't use uppercase in package names (https://nixos.org/nixpkgs/manual/#sec-package-naming)
So it's either kcc
or kindlecomicconverter
propagatedBuildInputs = with python3Packages; [ pillow pyqt5 psutil python-slugify raven ]; | ||
|
||
meta = { | ||
description = "Python app to convert comic/manga files or folders to EPUB, Panel View MOBI or E-Ink optimized CBZ."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No period at the end please: https://nixos.org/nixpkgs/manual/#sec-standard-meta-attributes
|
||
meta = { | ||
description = "Python app to convert comic/manga files or folders to EPUB, Panel View MOBI or E-Ink optimized CBZ."; | ||
homepage = https://kcc.iosphe.re; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're likely going to deprecate unquoted URL syntax soon, when RFC 45 is approved.
homepage = https://kcc.iosphe.re; | |
homepage = "https://kcc.iosphe.re"; |
We might want something like the following for cbz support: postFixup = ''
wrapProgram $out/bin/kcc --prefix PATH : ${ lib.makeBinPath [ p7zip ]}
''; |
Sorry if I ask, I'm new to nix, but why would we need these lines? |
We might want the expression to be self-contained. |
Motivation for this change
Add KindleComicConverter
https://kcc.iosphe.re
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)