at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 click-plugins, 5 colorama, 6 fetchPypi, 7 pythonOlder, 8 requests, 9 setuptools, 10 tldextract, 11 xlsxwriter, 12}: 13 14buildPythonPackage rec { 15 pname = "shodan"; 16 version = "1.31.0"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-xzJ1OG6gI5DhlsNcZgcGoo3U1TfFoh6zh6tiNvrCUfY="; 24 }; 25 26 propagatedBuildInputs = [ 27 click-plugins 28 colorama 29 requests 30 setuptools 31 tldextract 32 xlsxwriter 33 ]; 34 35 # The tests require a shodan api key, so skip them. 36 doCheck = false; 37 38 pythonImportsCheck = [ "shodan" ]; 39 40 meta = with lib; { 41 description = "Python library and command-line utility for Shodan"; 42 mainProgram = "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; [ 47 fab 48 lihop 49 ]; 50 }; 51}