e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
43 lines
795 B
Nix
43 lines
795 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, setuptools-scm
|
|
, cython
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyclipper";
|
|
version = "1.3.0.post5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fonttools";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-FKpP+tgJFzhij3wDQsAgwrTNnny7lgmN+tlSQ9JgG+Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
cython
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pyclipper"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Cython wrapper for clipper library";
|
|
homepage = "https://github.com/fonttools/pyclipper";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ matthuszagh ];
|
|
};
|
|
}
|