2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
2022-05-18 14:49:53 +00:00
|
|
|
, stdenv
|
2022-04-27 09:35:20 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, cython
|
2024-04-21 15:54:59 +00:00
|
|
|
, setuptools
|
2022-04-27 09:35:20 +00:00
|
|
|
, setuptools-scm
|
|
|
|
, pytestCheckHook
|
2022-07-14 12:49:19 +00:00
|
|
|
, ApplicationServices
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uharfbuzz";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.39.0";
|
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "harfbuzz";
|
|
|
|
repo = "uharfbuzz";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
fetchSubmodules = true;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-I4fCaomq26FdkpiJdj+zyrbdqdynnD2hIutYTuTFvQs=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
2024-04-21 15:54:59 +00:00
|
|
|
setuptools
|
2022-04-27 09:35:20 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ ApplicationServices ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "uharfbuzz" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Streamlined Cython bindings for the harfbuzz shaping engine";
|
|
|
|
homepage = "https://github.com/harfbuzz/uharfbuzz";
|
|
|
|
license = licenses.asl20;
|
2023-08-10 07:59:29 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
}
|