fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
44 lines
875 B
Nix
44 lines
875 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools-scm,
|
|
absl-py,
|
|
lxml,
|
|
skia-pathops,
|
|
pytestCheckHook,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "picosvg";
|
|
version = "0.22.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "googlefonts";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-jG1rfamegnX8GXDwqkGFBFzUeycRLDObJvGbxNk6OpM=";
|
|
};
|
|
|
|
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";
|
|
mainProgram = "picosvg";
|
|
homepage = "https://github.com/googlefonts/picosvg";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ _999eagle ];
|
|
};
|
|
}
|