diff --git a/pkgs/tools/admin/salt/pepper/default.nix b/pkgs/tools/admin/salt/pepper/default.nix index 24e59a355532..2b3011e6b4ee 100644 --- a/pkgs/tools/admin/salt/pepper/default.nix +++ b/pkgs/tools/admin/salt/pepper/default.nix @@ -1,17 +1,20 @@ { lib -, fetchurl , python2Packages +, salt }: python2Packages.buildPythonApplication rec { - name = "salt-pepper-${version}"; - version = "0.5.5"; - src = fetchurl { - url = "https://github.com/saltstack/pepper/releases/download/${version}/${name}.tar.gz"; - sha256 = "1wj1k64ly6af6qsmiizlx32jxh23a37smd9wb57l5zl0x8sfqq1n"; + pname = "salt-pepper"; + version = "0.7.5"; + src = python2Packages.fetchPypi { + inherit pname version; + sha256 = "1wh6yidwdk8jvjpr5g3azhqgsk24c5rlzmw6l86dmi0mpvmxm94w"; }; - doCheck = false; # no tests available + buildInputs = with python2Packages; [ setuptools setuptools_scm salt ]; + checkInputs = with python2Packages; [ + pytest mock pyzmq pytest-rerunfailures pytestcov cherrypy tornado_4 + ]; meta = with lib; { description = "A CLI front-end to a running salt-api system";