2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
ajpy,
|
|
|
|
buildPythonPackage,
|
|
|
|
cx-oracle,
|
|
|
|
dnspython,
|
|
|
|
fetchPypi,
|
|
|
|
impacket,
|
|
|
|
ipy,
|
|
|
|
mysqlclient,
|
|
|
|
paramiko,
|
|
|
|
psycopg2,
|
|
|
|
pyasn1,
|
|
|
|
pycrypto,
|
|
|
|
pycurl,
|
|
|
|
pyopenssl,
|
|
|
|
pysnmp,
|
|
|
|
pysqlcipher3,
|
|
|
|
pythonOlder,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "patator";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "1.0";
|
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-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-VQ7JPyQOY9X/7LVAvTwftoOegt4KyfERgu38HfmsYDM=";
|
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
|
2024-01-13 08:15:51 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|