1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, setuptools-scm 5, cython 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "pyclipper"; 12 version = "1.3.0.post3"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "fonttools"; 19 repo = pname; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-viBnmzbCAH9QaVHwUq43rm11e8o3N/jtGsGpmRZokaw="; 22 }; 23 24 SETUPTOOLS_SCM_PRETEND_VERSION = version; 25 26 nativeBuildInputs = [ 27 setuptools-scm 28 cython 29 ]; 30 31 checkInputs = [ 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "pyclipper" 37 ]; 38 39 meta = with lib; { 40 description = "Cython wrapper for clipper library"; 41 homepage = "https://github.com/fonttools/pyclipper"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ matthuszagh ]; 44 }; 45}