Skip to content

Commit

Permalink
Merge pull request #85561 from Flakebi/salt
Browse files Browse the repository at this point in the history
salt: 2019.2.0 -> 3000.2
  • Loading branch information
bhipple authored May 3, 2020
2 parents 405909f + 435713e commit f2b48ae
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions pkgs/tools/admin/salt/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
{
stdenv, pythonPackages, openssl,

{ lib
, python3
, openssl
# Many Salt modules require various Python modules to be installed,
# passing them in this array enables Salt to find them.
extraInputs ? []
, extraInputs ? []
}:
let

py = python3.override {
packageOverrides = self: super: {
# Can be unpinned once https://github.com/saltstack/salt/issues/56007 is resolved
msgpack = super.msgpack.overridePythonAttrs (
oldAttrs: rec {
version = "0.6.2";
src = oldAttrs.src.override {
inherit version;
sha256 = "0c0q3vx0x137567msgs5dnizghnr059qi5kfqigxbz26jf2jyg7a";
};
}
);
};
};

pythonPackages.buildPythonApplication rec {
in
py.pkgs.buildPythonApplication rec {
pname = "salt";
version = "2019.2.0";
version = "3000.2";

src = pythonPackages.fetchPypi {
src = py.pkgs.fetchPypi {
inherit pname version;
sha256 = "1kgn3lway0zwwysyzpphv05j4xgxk92dk4rv1vybr2527wmvp5an";
sha256 = "1n90qqhsvbf4pc4pcbya3rjfkblbccf4np4mxpghjqaa16fl4cqf";
};

propagatedBuildInputs = with pythonPackages; [
propagatedBuildInputs = with py.pkgs; [
jinja2
markupsafe
msgpack
Expand All @@ -24,8 +41,6 @@ pythonPackages.buildPythonApplication rec {
pyzmq
requests
tornado_4
] ++ stdenv.lib.optionals (!pythonPackages.isPy3k) [
futures
] ++ extraInputs;

patches = [ ./fix-libcrypto-loading.patch ];
Expand All @@ -40,7 +55,7 @@ pythonPackages.buildPythonApplication rec {
# as is it rather long.
doCheck = false;

meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://saltstack.com/";
description = "Portable, distributed, remote execution and configuration management system";
maintainers = with maintainers; [ aneeshusa ];
Expand Down

0 comments on commit f2b48ae

Please sign in to comment.