2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, click-plugins
|
|
|
|
, colorama
|
|
|
|
, requests
|
|
|
|
, setuptools
|
2022-01-22 01:22:15 +00:00
|
|
|
, pythonOlder
|
2023-03-15 16:39:30 +00:00
|
|
|
, xlsxwriter
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "shodan";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.29.1";
|
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;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-4q9iVOGdKo+k6Slzi+VR4l3Hqvw5RzLndufjD6RM4zk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click-plugins
|
|
|
|
colorama
|
|
|
|
requests
|
|
|
|
setuptools
|
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
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"shodan"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library and command-line utility for Shodan";
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ lihop ];
|
|
|
|
};
|
|
|
|
}
|