3
0
Fork 0
forked from mirrors/nixpkgs

python310Packages.uharfbuzz: init at 0.24.1

This commit is contained in:
P. R. d. O 2022-04-21 18:23:08 -06:00 committed by Jonathan Ringer
parent 322a82a0ad
commit 56cc54287d
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, cython
, setuptools-scm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "uharfbuzz";
version = "0.24.1";
format = "setuptools";
disabled = pythonOlder "3.5";
# Fetching from GitHub as Pypi contains different versions
src = fetchFromGitHub {
owner = "harfbuzz";
repo = "uharfbuzz";
rev = "v${version}";
sha256 = "sha256-DyFXbwB28JH2lvmWDezRh49tjCvleviUNSE5LHG3kUg=";
fetchSubmodules = true;
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
cython
setuptools-scm
];
checkInputs = [
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 = with maintainers; [ wolfangaukang ];
};
}

View file

@ -10443,6 +10443,8 @@ in {
ueagle = callPackage ../development/python-modules/ueagle { };
uharfbuzz = callPackage ../development/python-modules/uharfbuzz { };
ujson = callPackage ../development/python-modules/ujson { };
ukkonen = callPackage ../development/python-modules/ukkonen { };