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
maestral: 0.6.4 -> 1.1.0 #88698
maestral: 0.6.4 -> 1.1.0 #88698
Conversation
I think there's a better way to handle the wrapperargs as well not having to redo them when |
91466ee
to
d96a612
Compare
Rebased on master to stay up-to-date. |
@peterhoeg Any idea on how to improve this? I've just bumped the version to the latest (1.1.0), will test locally to see if it didn't break anything. |
If this version works, LGTM! |
5771175
to
b0146db
Compare
Rebased into two commits, one for the required dropbox update, and one for maestral itself. |
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.
sorry for the nit picks
b0146db
to
1841521
Compare
, systemd | ||
}: | ||
|
||
python.pkgs.buildPythonApplication rec { |
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.
sorry, i looked over this earlier, packages in python-modules
need to use buildPythonPackage, and generally python packages are imported individually
python.pkgs.buildPythonApplication rec { | |
buildPythonPackage rec { |
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.
Done. I've also explicitly imported pythonOlder
since that seems to follow that style 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.
also meant to link this video on python packaging for nix https://www.youtube.com/watch?v=jXd-hkP4xnU&t=3s
I think i mention briefly about the different between Package and 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.
It was a nice vid to watch, but it didn't cover that issue in particular. I'll keep these things in mind for the future though. The reason this package ended up in the state it was in is mostly because in the 0.6.4 version the maestral package was just a standalone application, so I ended up moving the nix code into python-modules wholesale. And it just worked so I didn't think to look at the other python modules to compare, which was my bad.
Please let me know if I can squash my new commit or if there are any other niggles.
daa38db
to
776597b
Compare
776597b
to
008a335
Compare
There has been a bulk update of Python packages. I've removed my dropbox update because it's already been updated on master, but I've had to add a new commit for the updated Pyro package, which fails some networking tests that have been added between 5.7 and 5.10. |
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.
LGTM
gui opens fine
https://github.com/NixOS/nixpkgs/pull/88698
5 packages built:
maestral maestral-gui python37Packages.Pyro5 python37Packages.maestral python38Packages.Pyro5
Motivation for this change
Maestral has seen a new major version released. In this release the GUI is split off into different packages (the GUI didn't work for me at all in the current nixpkgs version if I enabled the
withGUI
flag). So, I've moved the maestral base package to pythonPackages since it's imported as a library by the GUI versions. The cli-maestral is still available viatoPythonApplication
.Since the program spawns a daemon it seems to need additions to the
PYTHONPATH
to work (but there is probably a better way I don't know about).I don't have access to a Mac, so the new
maestral-cocoa
package is not packaged. It should be trivial to include in the same way. The package set attribute is the neutralmaestral-gui
to hidemaestal-qt
andmaestral-cocoa
.This PR will also fix #87315.
I'm using this branch in my system configuration and it Works For Me (TM).
The commits will be cleaned up before I remove the WIP part.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)