python3Packages.sshpubkeys: modernize

This commit is contained in:
Robert Schütz
2025-10-21 20:35:41 -07:00
parent b4587b019b
commit da764037f9
@@ -2,31 +2,36 @@
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
cryptography,
ecdsa,
}:
buildPythonPackage rec {
version = "3.3.1";
format = "setuptools";
pname = "sshpubkeys";
pyproject = true;
src = fetchFromGitHub {
owner = "ojarva";
repo = "python-${pname}";
rev = version;
sha256 = "1qsixmqg97kyvg1naw76blq4314vaw4hl5f9wi0v111mcmdia1r4";
repo = "python-sshpubkeys";
# https://github.com/ojarva/python-sshpubkeys/issues/94
tag = "v3.2.0";
hash = "sha256-2OJatnQuCt9XQ797F5nEmgEZl5/tu9lrAry5yBGW61g=";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
cryptography
ecdsa
];
meta = with lib; {
pythonImportsCheck = [ "sshpubkeys" ];
meta = {
changelog = "https://github.com/ojarva/python-sshpubkeys/releases/tag/${src.tag}";
description = "OpenSSH Public Key Parser for Python";
homepage = "https://github.com/ojarva/python-sshpubkeys";
license = licenses.bsd3;
license = lib.licenses.bsd3;
maintainers = [ ];
};
}