about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/uharfbuzz
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/uharfbuzz')
-rw-r--r--nixpkgs/pkgs/development/python-modules/uharfbuzz/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/uharfbuzz/default.nix b/nixpkgs/pkgs/development/python-modules/uharfbuzz/default.nix
new file mode 100644
index 000000000000..34bb5fef6df4
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/uharfbuzz/default.nix
@@ -0,0 +1,48 @@
+{ lib
+, stdenv
+, buildPythonPackage
+, fetchFromGitHub
+, pythonOlder
+, cython
+, setuptools-scm
+, pytestCheckHook
+, ApplicationServices
+}:
+
+buildPythonPackage rec {
+  pname = "uharfbuzz";
+  version = "0.37.3";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.5";
+
+  src = fetchFromGitHub {
+    owner = "harfbuzz";
+    repo = "uharfbuzz";
+    rev = "refs/tags/v${version}";
+    fetchSubmodules = true;
+    hash = "sha256-876gFYyMqeGYoXMdBguV6bi7DJKHJs9HNLw9xRu+Mxk=";
+  };
+
+  SETUPTOOLS_SCM_PRETEND_VERSION = version;
+
+  nativeBuildInputs = [
+    cython
+    setuptools-scm
+  ];
+
+  buildInputs = lib.optionals stdenv.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 = with maintainers; [ ];
+  };
+}