38 lines
715 B
Nix
38 lines
715 B
Nix
|
{ lib
|
||
|
, fetchPypi
|
||
|
, buildPythonPackage
|
||
|
, click-plugins
|
||
|
, colorama
|
||
|
, requests
|
||
|
, setuptools
|
||
|
, XlsxWriter
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "shodan";
|
||
|
version = "1.23.0";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
sha256 = "16rkbhdj7al7p8s1pfsjx9agxpvisbvyvcd04rm1kigpz87p9c1i";
|
||
|
};
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
click-plugins
|
||
|
colorama
|
||
|
requests
|
||
|
setuptools
|
||
|
XlsxWriter
|
||
|
];
|
||
|
|
||
|
# The tests require a shodan api key, so skip them.
|
||
|
doCheck = false;
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|