python3Packages.simanneal: modernize

This commit is contained in:
Harinn
2026-07-03 02:16:03 +07:00
parent fbca1d01f0
commit eaa544a9f9
@@ -6,15 +6,17 @@
pytest,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "simanneal";
version = "0.5.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "perrygeo";
repo = "simanneal";
rev = version;
tag = finalAttrs.version;
hash = "sha256-yKZHkrf6fM0WsHczIEK5Kxusz5dSBgydK3fLu1nDyvk=";
};
@@ -23,10 +25,12 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytest ];
checkPhase = "pytest tests";
pythonImportsCheck = [ "simanneal" ];
meta = {
description = "Python implementation of the simulated annealing optimization technique";
homepage = "https://github.com/perrygeo/simanneal";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ veprbl ];
};
}
})