depot/third_party/nixpkgs/pkgs/development/python-modules/pixel-font-builder/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

64 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, nix-update-script
, hatch-vcs
, hatchling
, bdffont
, brotli
, fonttools
, pypng
, pcffont
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "pixel-font-builder";
version = "0.0.24";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchPypi {
pname = "pixel_font_builder";
inherit version;
hash = "sha256-hBlTTIPx4TRgeXapVnSaKPUwseR3uYT0gcgKLGmmSZI=";
};
pythonRelaxDeps = [
"fonttools"
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
build-system = [
hatch-vcs
hatchling
];
nativeCheckInputs = [
pytestCheckHook
pypng
];
dependencies = [
bdffont
brotli
fonttools
pcffont
];
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 ];
};
}