python3Packages.cart: modernize

This commit is contained in:
Harinn
2026-06-06 09:35:35 +07:00
parent b419a335da
commit 2f3bdc7f64
@@ -7,15 +7,17 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "cart";
version = "1.2.3";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "CybercentreCanada";
repo = "cart";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-oeWeay1Pr9T4oR3XSrwv9hRr/sLTel1Bt6BG6jHXxIA=";
};
@@ -33,8 +35,8 @@ buildPythonPackage rec {
description = "Python module for the CaRT Neutering format";
mainProgram = "cart";
homepage = "https://github.com/CybercentreCanada/cart";
changelog = "https://github.com/CybercentreCanada/cart/releases/tag/${src.tag}";
changelog = "https://github.com/CybercentreCanada/cart/releases/tag/${finalAttrs.src.tag}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
})