nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 cython,
6 pkgconfig,
7 setuptools,
8 setuptools-scm,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "uharfbuzz";
14 version = "0.53.2";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "harfbuzz";
19 repo = "uharfbuzz";
20 tag = "v${version}";
21 fetchSubmodules = true;
22 hash = "sha256-EY5jAzcAHY4lmGsitVFtFMijEfAaSCifCjkdJhU2N1g=";
23 };
24
25 build-system = [
26 cython
27 pkgconfig
28 setuptools
29 setuptools-scm
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [ "uharfbuzz" ];
35
36 meta = {
37 description = "Streamlined Cython bindings for the harfbuzz shaping engine";
38 homepage = "https://github.com/harfbuzz/uharfbuzz";
39 license = lib.licenses.asl20;
40 maintainers = [ ];
41 };
42}