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.elasticsearch-curator: pass "click" dependency in version 6.7 #58023

Closed

Conversation

johanot
Copy link
Contributor

@johanot johanot commented Mar 21, 2019

Motivation for this change

Improving the fix from #57912 by passing click in version 6.7 to elasticsearch-curator, since according to elastic/curator#1280, it is not compatible with click v7.0.

This should be backported to 19.03 as well.

cc @srhb @dotlambda
@GrahamcOfBorg build pythonPackages.elasticsearch-curator pythonPackages.click

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@@ -1809,7 +1809,9 @@ in {
# alias
elasticsearchdsl = self.elasticsearch-dsl;

elasticsearch-curator = callPackage ../development/python-modules/elasticsearch-curator { };
elasticsearch-curator = callPackage ../development/python-modules/elasticsearch-curator {
click = callPackage ../development/python-modules/click { version = "6.7"; };
Copy link
Member

Choose a reason for hiding this comment

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

We can't do that for Python packages as multiple versions of the same package can't be in $PYTHONPATH.

Copy link
Member

Choose a reason for hiding this comment

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

We could use packageOverrides if elasticsearch-curator was only an application. However, according to https://github.com/elastic/curator#curator-api-documentation it also has an API.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:( That's the end of my python knowledge, tbh. I only use the module, which use elastic-curator as an application:

"${pkgs.python3Packages.elasticsearch-curator}/bin/curator" +
.. So I'd be fine with packageOverride or simply wrapping the binary, but I don't know what other usecases for this package that would destroy.

@srhb
Copy link
Contributor

srhb commented Mar 21, 2019 via email

dotlambda pushed a commit to dotlambda/nixpkgs that referenced this pull request Mar 21, 2019
See NixOS#58023 for a discussion
of why this is necessary. The upstream issue can be found at
elastic/curator#1280.
@srhb srhb closed this in #58031 Mar 22, 2019
srhb pushed a commit to srhb/nixpkgs that referenced this pull request Mar 22, 2019
See NixOS#58023 for a discussion
of why this is necessary. The upstream issue can be found at
elastic/curator#1280.

(cherry picked from commit c0409de)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants