Skip to content

Commit

Permalink
ssh-audit: init at 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
4z3 authored and Lassulus committed Apr 30, 2019
1 parent bc757ff commit d74e02b
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
53 changes: 53 additions & 0 deletions pkgs/tools/security/ssh-audit/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{ fetchFromGitHub, python3Packages, stdenv }:

python3Packages.buildPythonPackage rec {
pname = "ssh-audit";
version = "1.7.0";

src = fetchFromGitHub {
owner = "arthepsy";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "0akrychkdym9f6830ysq787c9nc0bkyqvy4h72498lyghwvwc2ms";
};

checkInputs = [
python3Packages.pytest
python3Packages.pytestcov
];

checkPhase = ''
py.test --cov-report= --cov=ssh-audit -v test
'';

postPatch = ''
printf %s "$setupPy" > setup.py
mkdir scripts
cp ssh-audit.py scripts/ssh-audit
mkdir ssh_audit
cp ssh-audit.py ssh_audit/__init__.py
'';

setupPy = /* py */ ''
from distutils.core import setup
setup(
author='arthepsy',
description='${meta.description}',
license='${meta.license.spdxId}',
name='${pname}',
packages=['ssh_audit'],
scripts=['scripts/ssh-audit'],
url='${meta.homepage}',
version='${version}',
)
'';

meta = {
description = "Tool for ssh server auditing";
homepage = "https://github.com/arthepsy/ssh-audit";
license = stdenv.lib.licenses.mit;
maintainers = [
stdenv.lib.maintainers.tv
];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23461,6 +23461,8 @@ in

ib-controller = callPackage ../applications/office/ib/controller { jdk=oraclejdk8; };

ssh-audit = callPackage ../tools/security/ssh-audit { };

thermald = callPackage ../tools/system/thermald { };

thinkfan = callPackage ../tools/system/thinkfan { };
Expand Down

0 comments on commit d74e02b

Please sign in to comment.