2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
nix-update-script,
|
|
|
|
hatch-vcs,
|
|
|
|
hatchling,
|
|
|
|
bdffont,
|
|
|
|
brotli,
|
|
|
|
fonttools,
|
|
|
|
pypng,
|
|
|
|
pcffont,
|
|
|
|
pythonRelaxDepsHook,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pixel-font-builder";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.0.24";
|
|
|
|
pyproject = true;
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "pixel_font_builder";
|
|
|
|
inherit version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-hBlTTIPx4TRgeXapVnSaKPUwseR3uYT0gcgKLGmmSZI=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "fonttools" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
build-system = [
|
2024-01-02 11:29:13 +00:00
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pypng
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2024-01-02 11:29:13 +00:00
|
|
|
bdffont
|
|
|
|
brotli
|
|
|
|
fonttools
|
2024-05-15 15:35:15 +00:00
|
|
|
pcffont
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/TakWolf/pixel-font-builder";
|
|
|
|
description = "A library that helps create pixel style fonts";
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ h7x4 ];
|
|
|
|
};
|
|
|
|
}
|