Files
nixpkgs/pkgs/development/python-modules/defcon/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
setuptools-scm,
fonttools,
fontpens,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "defcon";
version = "0.12.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Jd/n/QFSzPKSyxkNGSikfViImcILBGhUKT4DnhyT5eA=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
fonttools
]
++ fonttools.optional-dependencies.ufo
++ fonttools.optional-dependencies.unicode;
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "defcon" ];
optional-dependencies = {
pens = [ fontpens ];
lxml = [ fonttools ] ++ fonttools.optional-dependencies.lxml;
};
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}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sternenseemann ];
};
}