2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools-scm,
|
|
|
|
absl-py,
|
|
|
|
lxml,
|
|
|
|
skia-pathops,
|
|
|
|
pytestCheckHook,
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
absl-py
|
|
|
|
lxml
|
|
|
|
skia-pathops
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
# a few tests are failing on aarch64
|
2024-09-26 11:04:55 +00:00
|
|
|
doCheck = !stdenv.hostPlatform.isAarch64;
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool to simplify SVGs";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "picosvg";
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://github.com/googlefonts/picosvg";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ _999eagle ];
|
|
|
|
};
|
|
|
|
}
|