Merge #310779: fix ark-pixel-font build

This commit is contained in:
nicoo 2024-05-12 22:24:23 +00:00 committed by GitHub
commit 928a3ffb9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 66 additions and 10 deletions

View File

@ -6,13 +6,13 @@
python312Packages.buildPythonPackage rec {
pname = "ark-pixel-font";
version = "2024.04.05";
version = "2024.05.12";
src = fetchFromGitHub {
owner = "TakWolf";
repo = pname;
rev = version;
hash = "sha256-G34cu/mSt/p8UPJt+Q1T2qy6d9LGgT1Jslt9syRz5eo=";
repo = "ark-pixel-font";
rev = "refs/tags/${version}";
hash = "sha256-PGhhKWHDpvOqa3vaI40wuIsAEdWGb62cN7QJeHQqiss=";
};
format = "other";

View File

@ -12,13 +12,13 @@
buildPythonPackage rec {
pname = "bdffont";
version = "0.0.20";
version = "0.0.24";
disabled = pythonOlder "3.11";
src = fetchPypi {
inherit pname version;
hash = "sha256-T0gTtudsZmL0VZ3a3+C/v+dWAwbXUgf0PEdNtkxWROw=";
hash = "sha256-3HJwtBV78zsMUlmwJrPj74Vd5cru1zflvies5mNGcy4=";
};
format = "pyproject";

View File

@ -0,0 +1,44 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, bdffont
, pytestCheckHook
, nix-update-script
}:
buildPythonPackage rec {
pname = "pcffont";
version = "0.0.11";
pyproject = true;
src = fetchFromGitHub {
owner = "TakWolf";
repo = "pcffont";
rev = "refs/tags/${version}";
hash = "sha256-gu9niWxYTw3rcA++z8B+MdKp5XaqAGjmvd+PdSDosfg=";
};
build-system = [
hatchling
];
dependencies = [
bdffont
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "pcffont" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Library for manipulating Portable Compiled Format (PCF) fonts";
homepage = "https://github.com/TakWolf/pcffont";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
};
}

View File

@ -10,23 +10,32 @@
, brotli
, fonttools
, pypng
, pcffont
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "pixel-font-builder";
version = "0.0.19";
version = "0.0.24";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchPypi {
pname = "pixel_font_builder";
inherit version;
hash = "sha256-f38DyM5hojHfv8k/W6kcHxbOjz43hHW6i4Scm6NbHiQ=";
hash = "sha256-hBlTTIPx4TRgeXapVnSaKPUwseR3uYT0gcgKLGmmSZI=";
};
format = "pyproject";
pythonRelaxDeps = [
"fonttools"
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
build-system = [
hatch-vcs
hatchling
];
@ -36,10 +45,11 @@ buildPythonPackage rec {
pypng
];
propagatedBuildInputs = [
dependencies = [
bdffont
brotli
fonttools
pcffont
];
passthru.updateScript = nix-update-script { };

View File

@ -1338,6 +1338,8 @@ self: super: with self; {
paddlepaddle = callPackage ../development/python-modules/paddlepaddle { };
pcffont = callPackage ../development/python-modules/pcffont { };
pueblo = callPackage ../development/python-modules/pueblo { };
pulumi = callPackage ../development/python-modules/pulumi { inherit (pkgs) pulumi; };