nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6, cython
7, setuptools-scm
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "uharfbuzz";
13 version = "0.24.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.5";
17
18 # Fetching from GitHub as Pypi contains different versions
19 src = fetchFromGitHub {
20 owner = "harfbuzz";
21 repo = "uharfbuzz";
22 rev = "v${version}";
23 sha256 = "sha256-DyFXbwB28JH2lvmWDezRh49tjCvleviUNSE5LHG3kUg=";
24 fetchSubmodules = true;
25 };
26
27 SETUPTOOLS_SCM_PRETEND_VERSION = version;
28
29 nativeBuildInputs = [
30 cython
31 setuptools-scm
32 ];
33
34 checkInputs = [
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "uharfbuzz" ];
39
40 meta = with lib; {
41 description = "Streamlined Cython bindings for the harfbuzz shaping engine";
42 homepage = "https://github.com/harfbuzz/uharfbuzz";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ wolfangaukang ];
45 broken = stdenv.isDarwin;
46 };
47}