2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, python2Packages, hping }:
|
2020-03-29 11:34:50 +01:00
|
|
|
let
|
2015-07-22 02:26:40 +01:00
|
|
|
rev = "bf14bbff";
|
2020-03-29 11:34:50 +01:00
|
|
|
in python2Packages.buildPythonApplication rec {
|
|
|
|
pname = "knockknock-r";
|
|
|
|
version = rev;
|
2015-07-22 02:26:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "moxie0";
|
|
|
|
repo = "knockknock";
|
|
|
|
sha256 = "1chpfs3w2vkjrgay69pbdr116z1jldv53fi768a1i05fdqhy1px4";
|
|
|
|
};
|
|
|
|
|
2016-10-17 15:27:06 +01:00
|
|
|
propagatedBuildInputs = [ python2Packages.pycrypto ];
|
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
2015-07-22 02:26:40 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
2015-11-11 12:42:33 +00:00
|
|
|
sed -i '/build\//d' setup.py
|
2015-07-22 02:26:40 +01:00
|
|
|
substituteInPlace setup.py --replace "/etc" "$out/etc"
|
|
|
|
substituteInPlace knockknock.py --replace 'existsInPath("hping3")' '"${hping}/bin/hping3"'
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-07-22 02:26:40 +01:00
|
|
|
description = "Simple, secure port knocking daemon and client written in Python";
|
|
|
|
homepage = "http://www.thoughtcrime.org/software/knockknock/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ copumpkin ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2015-07-22 02:26:40 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|