94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
64 lines
1 KiB
Nix
64 lines
1 KiB
Nix
{ lib
|
|
, ajpy
|
|
, buildPythonPackage
|
|
, cx_oracle
|
|
, dnspython
|
|
, fetchPypi
|
|
, impacket
|
|
, ipy
|
|
, mysqlclient
|
|
, paramiko
|
|
, psycopg2
|
|
, pyasn1
|
|
, pycrypto
|
|
, pycurl
|
|
, pyopenssl
|
|
, pysnmp
|
|
, pysqlcipher3
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "patator";
|
|
version = "0.9";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-aMskvcMELuDUeiiLGai5mmxUvb1N3wxYF9m5rAoNihU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace requirements.txt \
|
|
--replace psycopg2-binary psycopg2
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
ajpy
|
|
cx_oracle
|
|
dnspython
|
|
impacket
|
|
ipy
|
|
mysqlclient
|
|
paramiko
|
|
psycopg2
|
|
pyasn1
|
|
pycrypto
|
|
pycurl
|
|
pyopenssl
|
|
pysnmp
|
|
pysqlcipher3
|
|
];
|
|
|
|
# tests require docker-compose and vagrant
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Multi-purpose brute-forcer";
|
|
homepage = "https://github.com/lanjelot/patator";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ y0no SuperSandro2000 ];
|
|
};
|
|
}
|