-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
ihatemoney: init at 4.1 plus module and test #68973
Conversation
}; | ||
meta = { | ||
homepage = "https://ihatemoney.org"; | ||
description = "A simple shared budget manager web application"; |
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.
web application so it probably does not belong in python-packages.nix
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.
I tried to use buildPythonApplication
but using the wsgi.py
needs to use this package as a python module and not a python application. Hence the placement in python-packages.nix.
group = "ihatemoney"; | ||
db = "ihatemoney"; | ||
python3 = config.services.uwsgi.package.python3; | ||
pkg = python3.pkgs.ihatemoney; |
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.
here the package is selected
module = "wsgi:application"; | ||
chdir = "${pkg}/${pkg.pythonModule.sitePackages}/ihatemoney"; | ||
env = [ "IHATEMONEY_SETTINGS_FILE_PATH=${configFile}" ]; | ||
pythonPackages = self: [ self.ihatemoney ]; |
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.
and here as well?
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.
Yes but I know it is the same package because I use the python which was used to build uwsgi. This is precisely the reason to introduce the services.uwsgi.package
internal option.
@FRidh The answers from @symphorien seem reasonable enough to me, do you think this needs more work or does this look good to you? |
Any more comments? |
@@ -0,0 +1,61 @@ | |||
{ python3Packages, lib, fetchFromGitHub, nixosTests }: |
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.
Do not pass in python3Packages because it will be called for every python version. Instead, every dep needs to be a parameter of its own.
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.
fixed
698f5bf
to
6554860
Compare
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.
All nix
code should be consistently indented with two spaces per level of indentation.
After these relatively trivial cosmetic nitpicks have been resolved I see no reason not to merge if @FRidh is satisfied.
09b3e67
to
32d2266
Compare
I reindented the files. |
Any interest in merging ? |
nixos/tests/ihatemoney.nix
Outdated
http = ":8000"; | ||
}; | ||
}; | ||
boot.cleanTmpDir = true; |
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.
Wanted to go ahead and merge, but there's just this remaining place with wrong indentation -- the below are just nits seen while re-reading through :)
Co-Authored-By: Léo Gaspard <github@leo.gaspard.ninja>
Co-Authored-By: Léo Gaspard <github@leo.gaspard.ninja>
now indentation is perfect
ran |
@ofborg build nixosTests.ihatemoney |
Thanks! Resolved the remaining conflicts, this LGTM, let's merge :) |
Motivation for this change
missing package
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)cc @Ekleog