blob: 0e6b4aabee6f1713f1a0f002e7b9e881e520bda8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
absl-py,
lxml,
skia-pathops,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "picosvg";
version = "0.22.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "googlefonts";
repo = "picosvg";
tag = "v${version}";
hash = "sha256-ocdHF0kYnfllpvul32itu1QtlDrqVeq5sT8Ecb5V1yk=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
absl-py
lxml
skia-pathops
];
nativeCheckInputs = [ pytestCheckHook ];
# a few tests are failing on aarch64
doCheck = !stdenv.hostPlatform.isAarch64;
meta = {
description = "Tool to simplify SVGs";
mainProgram = "picosvg";
homepage = "https://github.com/googlefonts/picosvg";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ _999eagle ];
};
}
|