Merge pull request #109667 from fabaff/censys

This commit is contained in:
Sandro 2021-01-19 12:32:45 +01:00 committed by GitHub
commit 6898046c31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 79 additions and 6 deletions

View File

@ -0,0 +1,50 @@
{ lib
, backoff
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, requests
, pytestcov
, requests-mock
, parameterized
}:
buildPythonPackage rec {
pname = "censys";
version = "1.1.0";
src = fetchFromGitHub {
owner = "censys";
repo = "censys-python";
rev = "v${version}";
sha256 = "0vvd13g48i4alnqil98zc09zi5kv6l2s3kdfyg5syjxvq4lfd476";
};
propagatedBuildInputs = [
backoff
requests
];
checkInputs = [
pytestcov
pytestCheckHook
requests-mock
parameterized
];
# The tests want to write a configuration file
preCheck = ''
export HOME=$(mktemp -d)
mkdir -p $HOME
'';
# All other tests require an API key
pytestFlagsArray = [ "tests/test_config.py" ];
pythonImportsCheck = [ "censys" ];
meta = with lib; {
description = "Python API wrapper for the Censys Search Engine (censys.io)";
homepage = "https://github.com/censys/censys-python";
license = with licenses; [ asl20 ];
maintainers = [ maintainers.fab ];
};
}

View File

@ -1,8 +1,11 @@
{ lib, fetchFromGitHub, python3 }:
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "theHarvester";
version = "3.1";
version = "3.2.2";
src = fetchFromGitHub {
owner = "laramies";
@ -12,8 +15,26 @@ python3.pkgs.buildPythonApplication rec {
};
propagatedBuildInputs = with python3.pkgs; [
aiodns beautifulsoup4 dns grequests netaddr
plotly pyyaml requests retrying shodan texttable
aiodns
aiohttp
aiomultiprocess
aiosqlite
beautifulsoup4
censys
certifi
dns
gevent
grequests
lxml
netaddr
plotly
pyppeteer
pyyaml
requests
retrying
shodan
texttable
uvloop
];
checkInputs = [ python3.pkgs.pytest ];
@ -31,6 +52,6 @@ python3.pkgs.buildPythonApplication rec {
'';
homepage = "https://github.com/laramies/theHarvester";
maintainers = with maintainers; [ c0bw3b treemo ];
license = licenses.gpl2;
license = licenses.gpl2Only;
};
}

View File

@ -1175,6 +1175,8 @@ in {
cement = callPackage ../development/python-modules/cement { };
censys = callPackage ../development/python-modules/censys { };
connect-box = callPackage ../development/python-modules/connect_box { };
cerberus = callPackage ../development/python-modules/cerberus { };