python3Packages.ssdeep: migrate to pyproject, enable __structuredAttrs, use finalAttrs (#530432)

This commit is contained in:
Fabian Affolter
2026-06-10 18:24:58 +00:00
committed by GitHub
@@ -4,25 +4,30 @@
cffi,
fetchFromGitHub,
pytestCheckHook,
setuptools,
six,
ssdeep,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "ssdeep";
version = "3.4.1";
format = "setuptools";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "DinoTools";
repo = "python-ssdeep";
tag = version;
tag = finalAttrs.version;
hash = "sha256-I5ci5BS+B3OE0xdLSahu3HCh99jjhnRHJFz830SvFpg=";
};
buildInputs = [ ssdeep ];
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
cffi
six
];
@@ -39,8 +44,8 @@ buildPythonPackage rec {
meta = {
description = "Python wrapper for the ssdeep library";
homepage = "https://github.com/DinoTools/python-ssdeep";
changelog = "https://github.com/DinoTools/python-ssdeep/blob/${version}/CHANGELOG.rst";
changelog = "https://github.com/DinoTools/python-ssdeep/blob/${finalAttrs.version}/CHANGELOG.rst";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ fab ];
};
}
})