Skip to content
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

pythonPackages.pepper: init at 0.5.0 #23640

Merged
merged 3 commits into from
Mar 9, 2017
Merged

pythonPackages.pepper: init at 0.5.0 #23640

merged 3 commits into from
Mar 9, 2017

Conversation

PierreR
Copy link
Contributor

@PierreR PierreR commented Mar 8, 2017

Motivation for this change

Add missing pepper python package

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

@mention-bot
Copy link

@PierreR, thanks for your PR! By analyzing the history of the files in this pull request, we identified @FRidh to be a potential reviewer.

@@ -8751,6 +8751,8 @@ in {
};
};

pepper = callPackage ../development/python-modules/pepper { };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

judging from the description this is an application and not a package. Therefore, it should be called from all-packages.nix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FRidh done. Thanks for the info.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... and the file also shouldn't be in python-modules. Please check the current version of the manual (nix-build doc) for the guidelines on Python packages.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FRidh I can put it on pkgs/tools/admin/pepper/default.nix or pkgs/tools/admin/salt/pepper.nix. The second one looks best to me (but I would actually have create a "saltstack" repo instead of "salt). What do you think ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FRidh That said, it is a bit weird to have ansible in a complete different place ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PierreR I'm fine with any really, I don't know what would be best there. Anyway, ansible is an unfortunate case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FRidh I have eventually opted for pkgs/tools/admin/salt/pepper which seems good enough. I have also replaced buildPythonPackage with buildPythonApplication.
As a note, I don't know how to find out the proper mirror://pypi/ (but github releases works well enough).

@FRidh FRidh added 6.topic: python 8.has: package (new) This PR adds a new package labels Mar 8, 2017
meta = {
description = "A CLI front-end to a running salt-api system";
homepage = https://github.com/saltstack/pepper;
license = lib.licenses.asl20;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to maintain this package?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Mic92 yes I can maintain the package.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, in that case please add a reference for your github username in lib/maintainers.nix and a reference it in this package like:

  meta = with stdenv.lib; {
      # ...
      maintainers = [ maintainers.pierrer ];
  };

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Mic92 @FRidh Sorry to bother you both with this again but I am wondering if salt-pepper is not a better name for the attribute in all-packages. I am not sure what is the most idiomatic between pepper, salt_pepper or salt-pepper. The executable is named 'pepper' and the python package is named 'salt-pepper'.

@Mic92 Mic92 merged commit eb8b602 into NixOS:master Mar 9, 2017
@Mic92
Copy link
Member

Mic92 commented Mar 9, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: python 8.has: package (new) This PR adds a new package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants