biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / shodan / default.nix
blobe83336b07b910c434d54c9d87f35bf9778539ca4
2   lib,
3   buildPythonPackage,
4   click-plugins,
5   colorama,
6   fetchPypi,
7   pythonOlder,
8   requests,
9   setuptools,
10   tldextract,
11   xlsxwriter,
14 buildPythonPackage rec {
15   pname = "shodan";
16   version = "1.31.0";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-xzJ1OG6gI5DhlsNcZgcGoo3U1TfFoh6zh6tiNvrCUfY=";
24   };
26   propagatedBuildInputs = [
27     click-plugins
28     colorama
29     requests
30     setuptools
31     tldextract
32     xlsxwriter
33   ];
35   # The tests require a shodan api key, so skip them.
36   doCheck = false;
38   pythonImportsCheck = [ "shodan" ];
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   };