python3Packages.defcon: migrate to pyproject (#560844)

This commit is contained in:
Lukas Epple
2026-09-19 19:26:49 +00:00
committed by GitHub

View File

@@ -2,25 +2,31 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
fonttools,
fontpens,
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "defcon";
version = "0.12.2";
format = "setuptools";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-Jd/n/QFSzPKSyxkNGSikfViImcILBGhUKT4DnhyT5eA=";
};
nativeBuildInputs = [ setuptools-scm ];
build-system = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
dependencies = [
fonttools
]
++ fonttools.optional-dependencies.ufo
@@ -38,8 +44,8 @@ buildPythonPackage rec {
meta = {
description = "Set of UFO based objects for use in font editing applications";
homepage = "https://github.com/robotools/defcon";
changelog = "https://github.com/robotools/defcon/releases/tag/${version}";
changelog = "https://github.com/robotools/defcon/releases/tag/${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sternenseemann ];
};
}
})