Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 66 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, stdenv, buildPythonPackage, fetchFromGitHub, python, pkg-config, pango, cython, AppKit, pytestCheckHook, pythonOlder}:
buildPythonPackage rec { pname = "manimpango"; version = "0.4.3"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "ManimCommunity"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-FT3X6TmGfwd8kRPtuqy78ZCGeEGGg6IJEeEpB7ZbIsA="; };
nativeBuildInputs = [ pkg-config ];
buildInputs = [ pango ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
propagatedBuildInputs = [ cython ];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = '' substituteInPlace setup.cfg \ --replace "--cov --no-cov-on-fail" "" '';
preBuild = '' ${python.pythonForBuild.interpreter} setup.py build_ext --inplace '';
pythonImportsCheck = [ "manimpango" ];
meta = with lib; { description = "Binding for Pango"; homepage = "https://github.com/ManimCommunity/ManimPango"; changelog = "https://github.com/ManimCommunity/ManimPango/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ emilytrau ]; };}