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.28.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "sha256-GL0q6BEUtwg24OMxUicyXhQ5gnUiOZiowjWwmUMvSws="; 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 license = licenses.mit; 43 maintainers = with maintainers; [ lihop ]; 44 }; 45}