python312Packages.mpl-typst: init at 0.1.0

python312Packages.mpl-typst: remove numpy dependency
This commit is contained in:
genga
2025-01-18 19:25:15 +03:00
parent 7753807735
commit fe5b3e767c
2 changed files with 55 additions and 0 deletions
@@ -0,0 +1,53 @@
{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
matplotlib,
numpy,
pytestCheckHook,
pillow,
nix-update-script,
}:
buildPythonPackage rec {
pname = "mpl-typst";
version = "0.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "daskol";
repo = "mpl-typst";
tag = "v${version}";
hash = "sha256-Pm5z4tkpgwjYtpBh9+AJWlsHl7HNGxyftfaNSwQDpdk=";
};
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/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ genga898 ];
};
}
+2
View File
@@ -8499,6 +8499,8 @@ self: super: with self; {
mpl-scatter-density = callPackage ../development/python-modules/mpl-scatter-density { };
mpl-typst = callPackage ../development/python-modules/mpl-typst { };
mpmath = callPackage ../development/python-modules/mpmath { };
mpris-server = callPackage ../development/python-modules/mpris-server { };