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