mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
cython,
|
|
pkgconfig,
|
|
setuptools,
|
|
setuptools-scm,
|
|
pytestCheckHook,
|
|
ApplicationServices,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uharfbuzz";
|
|
version = "0.41.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "harfbuzz";
|
|
repo = "uharfbuzz";
|
|
rev = "refs/tags/v${version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-N/Vprr1lJmDLUzf+aX374YbJhDuHOpPzNeYXpLOANeI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "setuptools >= 36.4, < 72.2" setuptools
|
|
'';
|
|
|
|
build-system = [
|
|
cython
|
|
pkgconfig
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ ApplicationServices ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "uharfbuzz" ];
|
|
|
|
meta = with lib; {
|
|
description = "Streamlined Cython bindings for the harfbuzz shaping engine";
|
|
homepage = "https://github.com/harfbuzz/uharfbuzz";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|