mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
eed14146a5
Programmatically generate SVG (vector) images, animations, and interactive Jupyter widgets https://github.com/cduck/drawsvg
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pythonOlder,
|
|
numpy,
|
|
imageio,
|
|
cairosvg,
|
|
imageio-ffmpeg,
|
|
pwkit,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "drawsvg";
|
|
version = "2.3.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cduck";
|
|
repo = "drawsvg";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-LoA5yYeHO4GqS3dk7EMg1ZC42HBgmM6rSfigWMc4yUQ=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
passthru.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 = with lib; {
|
|
description = "Programmatically generate SVG (vector) images, animations, and interactive Jupyter widgets";
|
|
homepage = "https://github.com/cduck/drawsvg";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|