python3Packages.shodan: migrate to pyproject (#537848)

This commit is contained in:
Fabian Affolter 2026-07-04 00:37:12 +00:00 committed by GitHub
commit 93febfdb40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,17 +10,22 @@
xlsxwriter,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "shodan";
version = "1.31.0";
format = "setuptools";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit pname version;
pname = "shodan";
inherit (finalAttrs) version;
hash = "sha256-xzJ1OG6gI5DhlsNcZgcGoo3U1TfFoh6zh6tiNvrCUfY=";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
click-plugins
colorama
requests
@ -38,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
];
};
}
})