Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / shodan / default.nix
blob0c4b1afb930c26a46ff6665e7ac061f33fed3e8e
1 { lib
2 , buildPythonPackage
3 , click-plugins
4 , colorama
5 , fetchPypi
6 , pythonOlder
7 , requests
8 , setuptools
9 , tldextract
10 , xlsxwriter
13 buildPythonPackage rec {
14   pname = "shodan";
15   version = "1.30.1";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-vttujCtEWVksG8F7TUtX2rDLWKRVrVie4mpjBCQs1QU=";
23   };
25   propagatedBuildInputs = [
26     click-plugins
27     colorama
28     requests
29     setuptools
30     tldextract
31     xlsxwriter
32   ];
34   # The tests require a shodan api key, so skip them.
35   doCheck = false;
37   pythonImportsCheck = [
38     "shodan"
39   ];
41   meta = with lib; {
42     description = "Python library and command-line utility for 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; [ fab lihop ];
47   };