mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
37 lines
758 B
Nix
37 lines
758 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "svgwrite";
|
|
version = "1.4.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mozman";
|
|
repo = "svgwrite";
|
|
rev = "v${version}";
|
|
hash = "sha256-uOsrDhE9AwWU7GIrCVuL3uXTPqtrh8sofvo2C5t+25I=";
|
|
};
|
|
|
|
# svgwrite requires Python 3.6 or newer
|
|
disabled = pythonOlder "3.6";
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# embed_google_web_font test tried to pull font from internet
|
|
"test_embed_google_web_font"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A Python library to create SVG drawings";
|
|
homepage = "https://github.com/mozman/svgwrite";
|
|
license = licenses.mit;
|
|
};
|
|
|
|
}
|