Files
nixpkgs/pkgs/development/python-modules/drawsvg/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

62 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pythonOlder,
numpy,
imageio,
cairosvg,
imageio-ffmpeg,
pwkit,
}:
buildPythonPackage rec {
pname = "drawsvg";
version = "2.4.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "cduck";
repo = "drawsvg";
tag = version;
hash = "sha256-JC7u6bEB7RCJVLeYnNqACmddLI5F5PyaaBxaAZ+N/5s=";
};
build-system = [ setuptools ];
optional-dependencies = {
all = [
numpy
imageio
cairosvg
imageio-ffmpeg
pwkit
];
raster = [
numpy
imageio
cairosvg
imageio-ffmpeg
];
color = [
pwkit
numpy
];
};
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "drawsvg" ];
meta = {
description = "Programmatically generate SVG (vector) images, animations, and interactive Jupyter widgets";
homepage = "https://github.com/cduck/drawsvg";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}