3
0
Fork 0
forked from mirrors/nixpkgs

python39Packages.skia-pathops: init at 0.7.9

This commit is contained in:
barinov274 2022-04-29 16:57:22 +10:00
parent ae3522a453
commit 1eaa0f5a7b
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, cython
, ninja
, setuptools-scm
, setuptools
, fetchPypi
, gn
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "skia-pathops";
version = "0.7.2";
src = fetchPypi {
pname = "skia-pathops";
inherit version;
extension = "zip";
sha256 = "sha256-Gdhcmv77oVr5KxPIiJlk935jgvWPQsYEC0AZ6yjLppA=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "build_cmd = [sys.executable, build_skia_py, build_dir]" \
'build_cmd = [sys.executable, build_skia_py, "--no-fetch-gn", "--no-virtualenv", "--gn-path", "${gn}/bin/gn", build_dir]'
'';
nativeBuildInputs = [ cython ninja setuptools-scm ];
propagatedBuildInputs = [ setuptools ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pathops" ];
meta = {
description = "Python access to operations on paths using the Skia library";
homepage = "https://skia.org/dev/present/pathops";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.BarinovMaxim ];
};
}

View file

@ -3109,6 +3109,8 @@ in {
fontmake = callPackage ../development/python-modules/fontmake { };
skia-pathops = callPackage ../development/python-modules/skia-pathops { };
openstep-plist = callPackage ../development/python-modules/openstep-plist { };
glyphslib = callPackage ../development/python-modules/glyphslib { };