8e65f7f0cc
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
45 lines
830 B
Nix
45 lines
830 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, click-plugins
|
|
, colorama
|
|
, requests
|
|
, setuptools
|
|
, pythonOlder
|
|
, XlsxWriter
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "shodan";
|
|
version = "1.27.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-XkrnBuALYxZ6n/f34PM0QvxqxvC08mKci9Mswwf41VA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click-plugins
|
|
colorama
|
|
requests
|
|
setuptools
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lihop ];
|
|
};
|
|
}
|