22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
43 lines
1 KiB
Nix
43 lines
1 KiB
Nix
{ 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 ];
|
|
};
|
|
}
|