Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
962 B · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, fetchFromGitHub, buildPythonPackage, setuptools, matplotlib, numpy, pytestCheckHook, pillow, nix-update-script,}:
buildPythonPackage rec { pname = "mpl-typst"; version = "0.2.1"; pyproject = true;
src = fetchFromGitHub { owner = "daskol"; repo = "mpl-typst"; tag = "v${version}"; hash = "sha256-lkO4BTo3duNAsppTjteeBuzgSJL/UnKVW2QXgrfVrqM="; };
build-system = [ setuptools ];
dependencies = [ matplotlib ];
nativeCheckInputs = [ pytestCheckHook pillow numpy ];
pythonImportsCheck = [ "mpl_typst" "mpl_typst.as_default" ];
passthru.updateScript = nix-update-script { };
meta = { description = "Typst backend for matplotlib"; homepage = "https://github.com/daskol/mpl-typst"; changelog = "https://github.com/daskol/mpl-typst/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ genga898 ]; };}