2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools-scm
|
|
|
|
, absl-py
|
|
|
|
, lxml
|
|
|
|
, skia-pathops
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "picosvg";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.22.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "googlefonts";
|
|
|
|
repo = pname;
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-jG1rfamegnX8GXDwqkGFBFzUeycRLDObJvGbxNk6OpM=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
absl-py
|
|
|
|
lxml
|
|
|
|
skia-pathops
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# a few tests are failing on aarch64
|
|
|
|
doCheck = !stdenv.isAarch64;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool to simplify SVGs";
|
|
|
|
homepage = "https://github.com/googlefonts/picosvg";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ _999eagle ];
|
|
|
|
};
|
|
|
|
}
|