ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / uharfbuzz / default.nix
blobac0fd9fb66b1c18c66bd2b427b56d2aad08388aa
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pythonOlder
6 , cython
7 , setuptools-scm
8 , pytestCheckHook
9 , ApplicationServices
12 buildPythonPackage rec {
13   pname = "uharfbuzz";
14   version = "0.24.1";
15   format = "setuptools";
17   disabled = pythonOlder "3.5";
19   # Fetching from GitHub as Pypi contains different versions
20   src = fetchFromGitHub {
21     owner = "harfbuzz";
22     repo = "uharfbuzz";
23     rev = "v${version}";
24     sha256 = "sha256-DyFXbwB28JH2lvmWDezRh49tjCvleviUNSE5LHG3kUg=";
25     fetchSubmodules = true;
26   };
28   SETUPTOOLS_SCM_PRETEND_VERSION = version;
30   nativeBuildInputs = [
31     cython
32     setuptools-scm
33   ];
35   buildInputs = lib.optionals stdenv.isDarwin [ ApplicationServices ];
37   checkInputs = [
38     pytestCheckHook
39   ];
41   pythonImportsCheck = [ "uharfbuzz" ];
43   meta = with lib; {
44     description = "Streamlined Cython bindings for the harfbuzz shaping engine";
45     homepage = "https://github.com/harfbuzz/uharfbuzz";
46     license = licenses.asl20;
47     maintainers = with maintainers; [ wolfangaukang ];
48   };