2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, ajpy
|
|
|
|
, buildPythonPackage
|
|
|
|
, cx_oracle
|
|
|
|
, dnspython
|
|
|
|
, fetchPypi
|
|
|
|
, impacket
|
|
|
|
, ipy
|
|
|
|
, mysqlclient
|
|
|
|
, paramiko
|
|
|
|
, psycopg2
|
|
|
|
, pyasn1
|
|
|
|
, pycrypto
|
|
|
|
, pycurl
|
|
|
|
, pyopenssl
|
|
|
|
, pysnmp
|
|
|
|
, pysqlcipher3
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "patator";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "0.9";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-aMskvcMELuDUeiiLGai5mmxUvb1N3wxYF9m5rAoNihU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace psycopg2-binary psycopg2
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
ajpy
|
|
|
|
cx_oracle
|
2023-05-24 13:37:59 +00:00
|
|
|
dnspython
|
|
|
|
impacket
|
|
|
|
ipy
|
2020-04-24 23:36:52 +00:00
|
|
|
mysqlclient
|
2023-05-24 13:37:59 +00:00
|
|
|
paramiko
|
2020-04-24 23:36:52 +00:00
|
|
|
psycopg2
|
2023-05-24 13:37:59 +00:00
|
|
|
pyasn1
|
2020-04-24 23:36:52 +00:00
|
|
|
pycrypto
|
2023-05-24 13:37:59 +00:00
|
|
|
pycurl
|
|
|
|
pyopenssl
|
2020-04-24 23:36:52 +00:00
|
|
|
pysnmp
|
2021-01-05 17:05:55 +00:00
|
|
|
pysqlcipher3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
# tests require docker-compose and vagrant
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-05-24 13:37:59 +00:00
|
|
|
description = "Multi-purpose brute-forcer";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/lanjelot/patator";
|
2023-05-24 13:37:59 +00:00
|
|
|
license = licenses.gpl2Only;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ y0no ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|