diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2019-11-18 12:57:08 -0800 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2019-11-19 07:38:27 -0800 |
commit | 6a983b61d4d8ce96823d306afe0eb49e75240a00 (patch) | |
tree | 1e88c5c40fccbec2abb4ebd4e679c2f0c84ef347 /pkgs | |
parent | 19b5055f6ab7ffd2fe9ec9cd59ad8b2467c1bae3 (diff) | |
download | nixpkgs-6a983b61d4d8ce96823d306afe0eb49e75240a00.tar nixpkgs-6a983b61d4d8ce96823d306afe0eb49e75240a00.tar.gz nixpkgs-6a983b61d4d8ce96823d306afe0eb49e75240a00.tar.bz2 nixpkgs-6a983b61d4d8ce96823d306afe0eb49e75240a00.tar.lz nixpkgs-6a983b61d4d8ce96823d306afe0eb49e75240a00.tar.xz nixpkgs-6a983b61d4d8ce96823d306afe0eb49e75240a00.tar.zst nixpkgs-6a983b61d4d8ce96823d306afe0eb49e75240a00.zip |
elasticsearch-curator: move out of python-packages
Upstream froze click to <7, which means it will only work with overrides, which means it can't compose with other python modules.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/admin/elasticsearch-curator/default.nix (renamed from pkgs/development/python-modules/elasticsearch-curator/default.nix) | 54 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 15 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 34 insertions, 37 deletions
diff --git a/pkgs/development/python-modules/elasticsearch-curator/default.nix b/pkgs/tools/admin/elasticsearch-curator/default.nix index 5c5329656a9..8d8f9070499 100644 --- a/pkgs/development/python-modules/elasticsearch-curator/default.nix +++ b/pkgs/tools/admin/elasticsearch-curator/default.nix @@ -1,27 +1,29 @@ -{ stdenv -, buildPythonPackage -, fetchPypi -, boto3 -, click -, certifi -, requests-aws4auth -, voluptuous -, pyyaml -, elasticsearch -, nosexcover -, coverage -, nose -, mock -, funcsigs -} : +{ lib, fetchFromGitHub, python }: -buildPythonPackage rec { +let +py = python.override { + packageOverrides = self: super: { + click = super.click.overridePythonAttrs (oldAttrs: rec { + version = "6.7"; + src = oldAttrs.src.override { + inherit version; + sha256 = "f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b"; + }; + }); + }; +}; +in + +with py.pkgs; +buildPythonApplication rec { pname = "elasticsearch-curator"; version = "5.8.1"; - src = fetchPypi { - inherit pname version; - sha256 = "f0eec9ad043a30bc2e2232637111960139a1bda38232241bdd2f0c253a3584df"; + src = fetchFromGitHub { + owner = "elastic"; + repo = "curator"; + rev = "v${version}"; + sha256 = "1shr9jslirjnbvma3p19djsnamxl7f3m9c8zrlclk57zv8rnwpkr"; }; # The test hangs so we disable it. @@ -31,6 +33,7 @@ buildPythonPackage rec { click certifi requests-aws4auth + pyopenssl voluptuous pyyaml elasticsearch @@ -46,10 +49,15 @@ buildPythonPackage rec { ]; postPatch = '' - sed -i s/pyyaml==3.12/pyyaml==${pyyaml.version}/ setup.cfg setup.py + sed -i s/pyyaml==3.13/pyyaml/g setup.cfg setup.py + sed -i s/pyyaml==3.12/pyyaml/g setup.cfg setup.py + substituteInPlace setup.py \ + --replace "urllib3>=1.24.2,<1.25" "urllib3" + substituteInPlace setup.cfg \ + --replace "urllib3>=1.24.2,<1.25" "urllib3" ''; - meta = with stdenv.lib; { + meta = with lib; { homepage = https://github.com/elastic/curator; description = "Curate, or manage, your Elasticsearch indices and snapshots"; license = licenses.asl20; @@ -68,6 +76,6 @@ buildPythonPackage rec { maintainers = with maintainers; [ basvandijk ]; # https://github.com/elastic/curator/pull/1280 - broken = versionAtLeast click.version "7.0"; + #broken = versionAtLeast click.version "7.0"; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5937fc95a78..26b0988de44 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3016,18 +3016,9 @@ in elasticsearch = elasticsearch7-oss; }; - elasticsearch-curator = with (python3.override { - packageOverrides = self: super: { - click = super.click.overridePythonAttrs (oldAttrs: rec { - version = "6.7"; - src = oldAttrs.src.override { - inherit version; - sha256 = "f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b"; - }; - }); - pyyaml = super.pyyaml_3; - }; - }).pkgs; toPythonApplication elasticsearch-curator; + elasticsearch-curator = callPackage ../tools/admin/elasticsearch-curator { + python = python3; + }; embree2 = callPackage ../development/libraries/embree/2.x.nix { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 478a9ed5077..66decd79ddb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2352,8 +2352,6 @@ in { # alias elasticsearchdsl = self.elasticsearch-dsl; - elasticsearch-curator = callPackage ../development/python-modules/elasticsearch-curator { }; - elementpath = callPackage ../development/python-modules/elementpath { }; entrypoints = callPackage ../development/python-modules/entrypoints { }; |