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";
|
2020-10-16 13:40:10 +01:00
|
|
|
version = "1.24.0";
|
2019-02-07 12:14:36 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-16 13:40:10 +01:00
|
|
|
sha256 = "0b5ec40c954cd48c4e3234e81ad92afdc68438f82ad392fed35b7097eb77b6dd";
|
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;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|