1{ lib
2, fetchPypi
3, buildPythonPackage
4, click-plugins
5, colorama
6, requests
7, setuptools
8, XlsxWriter
9}:
10
11buildPythonPackage rec {
12 pname = "shodan";
13 version = "1.21.2";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "1pbfmab3ixvaa845qp6ms2djcwp9c5vnlsr2bf9prmx5973khg7d";
18 };
19
20 propagatedBuildInputs = [
21 click-plugins
22 colorama
23 requests
24 setuptools
25 XlsxWriter
26 ];
27
28 # The tests require a shodan api key, so skip them.
29 doCheck = false;
30
31 meta = with lib; {
32 description = "Python library and command-line utility for Shodan";
33 homepage = https://github.com/achillean/shodan-python;
34 license = licenses.mit;
35 maintainers = with maintainers; [ lihop ];
36 };
37}