nixpkgs-suyu/pkgs/development/python-modules/shodan/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

45 lines
828 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, click-plugins
, colorama
, requests
, setuptools
, pythonOlder
, xlsxwriter
}:
buildPythonPackage rec {
pname = "shodan";
version = "1.28.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-GL0q6BEUtwg24OMxUicyXhQ5gnUiOZiowjWwmUMvSws=";
};
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 ];
};
}