Merge pull request #109667 from fabaff/censys
This commit is contained in:
commit
6898046c31
50
pkgs/development/python-modules/censys/default.nix
Normal file
50
pkgs/development/python-modules/censys/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,8 +1,11 @@
|
|||||||
{ lib, fetchFromGitHub, python3 }:
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python3
|
||||||
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "theHarvester";
|
pname = "theHarvester";
|
||||||
version = "3.1";
|
version = "3.2.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "laramies";
|
owner = "laramies";
|
||||||
@ -11,9 +14,27 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
sha256 = "0lxzxfa9wbzim50d2jmd27i57szd0grm1dfayhnym86jn01qpvn3";
|
sha256 = "0lxzxfa9wbzim50d2jmd27i57szd0grm1dfayhnym86jn01qpvn3";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
aiodns beautifulsoup4 dns grequests netaddr
|
aiodns
|
||||||
plotly pyyaml requests retrying shodan texttable
|
aiohttp
|
||||||
|
aiomultiprocess
|
||||||
|
aiosqlite
|
||||||
|
beautifulsoup4
|
||||||
|
censys
|
||||||
|
certifi
|
||||||
|
dns
|
||||||
|
gevent
|
||||||
|
grequests
|
||||||
|
lxml
|
||||||
|
netaddr
|
||||||
|
plotly
|
||||||
|
pyppeteer
|
||||||
|
pyyaml
|
||||||
|
requests
|
||||||
|
retrying
|
||||||
|
shodan
|
||||||
|
texttable
|
||||||
|
uvloop
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ python3.pkgs.pytest ];
|
checkInputs = [ python3.pkgs.pytest ];
|
||||||
@ -31,6 +52,6 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
'';
|
'';
|
||||||
homepage = "https://github.com/laramies/theHarvester";
|
homepage = "https://github.com/laramies/theHarvester";
|
||||||
maintainers = with maintainers; [ c0bw3b treemo ];
|
maintainers = with maintainers; [ c0bw3b treemo ];
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Only;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1175,6 +1175,8 @@ in {
|
|||||||
|
|
||||||
cement = callPackage ../development/python-modules/cement { };
|
cement = callPackage ../development/python-modules/cement { };
|
||||||
|
|
||||||
|
censys = callPackage ../development/python-modules/censys { };
|
||||||
|
|
||||||
connect-box = callPackage ../development/python-modules/connect_box { };
|
connect-box = callPackage ../development/python-modules/connect_box { };
|
||||||
|
|
||||||
cerberus = callPackage ../development/python-modules/cerberus { };
|
cerberus = callPackage ../development/python-modules/cerberus { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user