2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
click-plugins,
|
|
|
|
colorama,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
tldextract,
|
|
|
|
xlsxwriter,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "shodan";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.31.0";
|
2022-01-22 01:22:15 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-xzJ1OG6gI5DhlsNcZgcGoo3U1TfFoh6zh6tiNvrCUfY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click-plugins
|
|
|
|
colorama
|
|
|
|
requests
|
|
|
|
setuptools
|
2023-08-22 20:05:09 +00:00
|
|
|
tldextract
|
2023-03-15 16:39:30 +00:00
|
|
|
xlsxwriter
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# The tests require a shodan api key, so skip them.
|
|
|
|
doCheck = false;
|
2022-01-22 01:22:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "shodan" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library and command-line utility for Shodan";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "shodan";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/achillean/shodan-python";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/achillean/shodan-python/blob/${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
fab
|
|
|
|
lihop
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|