2019-02-07 12:14:36 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, click-plugins
|
|
|
|
, colorama
|
|
|
|
, requests
|
2019-09-29 13:39:36 +01:00
|
|
|
, setuptools
|
2019-02-07 12:14:36 +00:00
|
|
|
, XlsxWriter
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "shodan";
|
2021-01-26 13:36:40 +00:00
|
|
|
version = "1.25.0";
|
2019-02-07 12:14:36 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-26 13:36:40 +00:00
|
|
|
sha256 = "sha256-fivdvBtgv2IAQtABD0t2KoC0MRHb6pwEHXLUMl4mDCM=";
|
2019-02-07 12:14:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click-plugins
|
|
|
|
colorama
|
|
|
|
requests
|
2019-09-29 13:39:36 +01:00
|
|
|
setuptools
|
2019-02-07 12:14:36 +00:00
|
|
|
XlsxWriter
|
|
|
|
];
|
|
|
|
|
|
|
|
# The tests require a shodan api key, so skip them.
|
|
|
|
doCheck = false;
|
2021-01-26 13:36:40 +00:00
|
|
|
pythonImportsCheck = [ "shodan" ];
|
2019-02-07 12:14:36 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library and command-line utility for Shodan";
|
2020-03-25 15:10:20 +00:00
|
|
|
homepage = "https://github.com/achillean/shodan-python";
|
2019-02-07 12:14:36 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lihop ];
|
|
|
|
};
|
|
|
|
}
|