2021-01-25 08:26:54 +00:00
|
|
|
{
|
|
|
|
lib,
|
2022-04-29 11:24:32 +01:00
|
|
|
fetchFromGitHub,
|
2020-04-23 17:05:20 +01:00
|
|
|
buildPythonPackage,
|
2024-10-30 01:42:38 +00:00
|
|
|
setuptools,
|
2021-06-03 11:09:11 +01:00
|
|
|
setuptools-scm,
|
2020-04-23 17:05:20 +01:00
|
|
|
cython,
|
2021-08-20 19:43:15 +01:00
|
|
|
pytestCheckHook,
|
2020-04-23 17:05:20 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyclipper";
|
2024-10-18 16:33:51 +01:00
|
|
|
version = "1.3.0.post6";
|
2024-10-30 01:42:38 +00:00
|
|
|
pyproject = true;
|
2022-04-29 11:24:32 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fonttools";
|
2024-10-30 01:42:38 +00:00
|
|
|
repo = "pyclipper";
|
2022-06-14 15:46:38 +01:00
|
|
|
rev = "refs/tags/${version}";
|
2024-10-18 16:33:51 +01:00
|
|
|
hash = "sha256-s2D0ipDatAaF7A1RYOKyI31nkfc/WL3vHWsAMbo+WcY=";
|
2020-04-23 17:05:20 +01:00
|
|
|
};
|
|
|
|
|
2024-10-30 01:42:38 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
2021-06-03 11:09:11 +01:00
|
|
|
setuptools-scm
|
2020-04-23 17:05:20 +01:00
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-04-29 11:24:32 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyclipper" ];
|
2020-04-23 17:05:20 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-23 17:05:20 +01:00
|
|
|
description = "Cython wrapper for clipper library";
|
2022-04-29 11:24:32 +01:00
|
|
|
homepage = "https://github.com/fonttools/pyclipper";
|
|
|
|
license = licenses.mit;
|
2020-04-23 17:05:20 +01:00
|
|
|
maintainers = with maintainers; [ matthuszagh ];
|
|
|
|
};
|
|
|
|
}
|