1{ lib
2, fetchPypi
3, buildPythonPackage
4, click-plugins
5, colorama
6, requests
7, setuptools
8, pythonOlder
9, xlsxwriter
10}:
11
12buildPythonPackage rec {
13 pname = "shodan";
14 version = "1.29.1";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-4q9iVOGdKo+k6Slzi+VR4l3Hqvw5RzLndufjD6RM4zk=";
22 };
23
24 propagatedBuildInputs = [
25 click-plugins
26 colorama
27 requests
28 setuptools
29 xlsxwriter
30 ];
31
32 # The tests require a shodan api key, so skip them.
33 doCheck = false;
34
35 pythonImportsCheck = [
36 "shodan"
37 ];
38
39 meta = with lib; {
40 description = "Python library and command-line utility for Shodan";
41 homepage = "https://github.com/achillean/shodan-python";
42 changelog = "https://github.com/achillean/shodan-python/blob/${version}/CHANGELOG.md";
43 license = licenses.mit;
44 maintainers = with maintainers; [ lihop ];
45 };
46}