2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
2024-06-24 18:47:55 +00:00
|
|
|
pytestCheckHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
nix-update-script,
|
|
|
|
hatchling,
|
|
|
|
fonttools,
|
2024-06-24 18:47:55 +00:00
|
|
|
brotli,
|
|
|
|
bdffont,
|
2024-06-05 15:53:02 +00:00
|
|
|
pcffont,
|
2024-06-24 18:47:55 +00:00
|
|
|
pypng,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pixel-font-builder";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.0.26";
|
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-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-bgs2FbOA5tcUXe5+KuVztWGAv5yFxQNBaiZMeZ+ic+8=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
build-system = [ hatchling ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2024-01-02 11:29:13 +00:00
|
|
|
fonttools
|
2024-06-24 18:47:55 +00:00
|
|
|
brotli
|
|
|
|
bdffont
|
2024-05-15 15:35:15 +00:00
|
|
|
pcffont
|
2024-06-24 18:47:55 +00:00
|
|
|
pypng
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pixel_font_builder" ];
|
|
|
|
|
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;
|
2024-06-24 18:47:55 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
TakWolf
|
|
|
|
h7x4
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
}
|