mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-14 20:10:25 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
36 lines
735 B
Nix
36 lines
735 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "svgwrite";
|
|
version = "1.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mozman";
|
|
repo = "svgwrite";
|
|
rev = "v${version}";
|
|
sha256 = "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;
|
|
};
|
|
|
|
}
|