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