depot/third_party/nixpkgs/pkgs/development/python-modules/picosvg/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

45 lines
822 B
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, absl-py
, lxml
, skia-pathops
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "picosvg";
version = "0.22.1";
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";
homepage = "https://github.com/googlefonts/picosvg";
license = licenses.asl20;
maintainers = with maintainers; [ _999eagle ];
};
}