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-04-11 04:26:07 +01:00
|
|
|
version = "1.23.0";
|
2019-02-07 12:14:36 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-04-11 04:26:07 +01:00
|
|
|
sha256 = "16rkbhdj7al7p8s1pfsjx9agxpvisbvyvcd04rm1kigpz87p9c1i";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|