Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 42 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243{ lib, buildPythonPackage, fetchPypi, replaceVars, opentype-sanitizer, setuptools-scm, pytestCheckHook,}:
buildPythonPackage rec { pname = "ots-python"; version = "9.1.0"; format = "setuptools";
src = fetchPypi { pname = "opentype-sanitizer"; inherit version; hash = "sha256-1Zdd+eRECimZl8L8CCkm7pCjN0TafSsc5i2Y6/oH88I="; };
patches = [ # Invoke ots-sanitize from the opentype-sanitizer package instead of # downloading precompiled binaries from the internet. # (nixpkgs-specific, not upstreamable) (replaceVars ./0001-use-packaged-ots.patch { ots_sanitize = "${opentype-sanitizer}/bin/ots-sanitize"; }) ];
propagatedBuildInputs = [ opentype-sanitizer ]; nativeBuildInputs = [ setuptools-scm ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; { description = "Python wrapper for ots (OpenType Sanitizer)"; homepage = "https://github.com/googlefonts/ots-python"; license = licenses.bsd3; maintainers = with maintainers; [ danc86 ]; };}