11 buildPythonPackage rec {
14 format = "setuptools";
17 pname = "opentype-sanitizer";
19 hash = "sha256-1Zdd+eRECimZl8L8CCkm7pCjN0TafSsc5i2Y6/oH88I=";
23 # Invoke ots-sanitize from the opentype-sanitizer package instead of
24 # downloading precompiled binaries from the internet.
25 # (nixpkgs-specific, not upstreamable)
27 src = ./0001-use-packaged-ots.patch;
28 ots_sanitize = "${opentype-sanitizer}/bin/ots-sanitize";
32 propagatedBuildInputs = [ opentype-sanitizer ];
33 nativeBuildInputs = [ setuptools-scm ];
35 nativeCheckInputs = [ pytestCheckHook ];
38 description = "Python wrapper for ots (OpenType Sanitizer)";
39 homepage = "https://github.com/googlefonts/ots-python";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ danc86 ];