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