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-06-20 14:57:18 +00:00
|
|
|
version = "0.0.25";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "pixel_font_builder";
|
|
|
|
inherit version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-66mGZ7q64z+tTJSSveD7UCkTq7YXgsHTM25MqUSLfvM=";
|
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";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library that helps create pixel style fonts";
|
2024-01-02 11:29:13 +00:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ h7x4 ];
|
|
|
|
};
|
|
|
|
}
|