504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
48 lines
951 B
Nix
48 lines
951 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click-plugins
|
|
, colorama
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, requests
|
|
, setuptools
|
|
, tldextract
|
|
, xlsxwriter
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "shodan";
|
|
version = "1.31.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-xzJ1OG6gI5DhlsNcZgcGoo3U1TfFoh6zh6tiNvrCUfY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click-plugins
|
|
colorama
|
|
requests
|
|
setuptools
|
|
tldextract
|
|
xlsxwriter
|
|
];
|
|
|
|
# The tests require a shodan api key, so skip them.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"shodan"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library and command-line utility for Shodan";
|
|
homepage = "https://github.com/achillean/shodan-python";
|
|
changelog = "https://github.com/achillean/shodan-python/blob/${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab lihop ];
|
|
};
|
|
}
|