diff --git a/pkgs/development/python-modules/shodan/default.nix b/pkgs/development/python-modules/shodan/default.nix new file mode 100644 index 000000000000..0fde898ca04f --- /dev/null +++ b/pkgs/development/python-modules/shodan/default.nix @@ -0,0 +1,35 @@ +{ lib +, fetchPypi +, buildPythonPackage +, click-plugins +, colorama +, requests +, XlsxWriter +}: + +buildPythonPackage rec { + pname = "shodan"; + version = "1.10.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "13966vqxww7v2b5hf2kjismdzvqyjvxlcdvpkzpbsrpxy9pvn2n4"; + }; + + propagatedBuildInputs = [ + click-plugins + colorama + requests + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 531488395946..e485eda2e1d6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4034,6 +4034,8 @@ in { simplegeneric = callPackage ../development/python-modules/simplegeneric { }; + shodan = callPackage ../development/python-modules/shodan { }; + should-dsl = callPackage ../development/python-modules/should-dsl { }; simplejson = callPackage ../development/python-modules/simplejson { };