python3Packages.shodan: modernize

This commit is contained in:
Harinn
2026-07-02 14:05:21 +07:00
parent cc2d56dff4
commit 024ad092fe

View File

@@ -10,13 +10,16 @@
xlsxwriter,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "shodan";
version = "1.31.0";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit pname version;
pname = "shodan";
inherit (finalAttrs) version;
hash = "sha256-xzJ1OG6gI5DhlsNcZgcGoo3U1TfFoh6zh6tiNvrCUfY=";
};
@@ -40,11 +43,11 @@ buildPythonPackage rec {
description = "Python library and command-line utility for Shodan";
mainProgram = "shodan";
homepage = "https://github.com/achillean/shodan-python";
changelog = "https://github.com/achillean/shodan-python/blob/${version}/CHANGELOG.md";
changelog = "https://github.com/achillean/shodan-python/blob/${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
fab
lihop
];
};
}
})