2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools-scm,
|
|
|
|
fonttools,
|
|
|
|
fontpens,
|
|
|
|
pytestCheckHook,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "defcon";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.10.3";
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "setuptools";
|
2021-03-12 07:09:13 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-Vt4m18dfFk7qA+KLwRtMdpxo1wX6GG38rrVsJ/mkzAw=";
|
2020-09-25 04:45:31 +00:00
|
|
|
extension = "zip";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2021-03-12 07:09:13 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
fonttools
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ fonttools.optional-dependencies.ufo ++ fonttools.optional-dependencies.unicode;
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "defcon" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
pens = [ fontpens ];
|
|
|
|
lxml = [ fonttools ] ++ fonttools.optional-dependencies.lxml;
|
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Set of UFO based objects for use in font editing applications";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/robotools/defcon";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/robotools/defcon/releases/tag/${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.mit;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|