Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 setuptools-scm, 6 cython, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "pyclipper"; 13 version = "1.3.0.post5"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "fonttools"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-FKpP+tgJFzhij3wDQsAgwrTNnny7lgmN+tlSQ9JgG+Q="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools-scm 27 cython 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "pyclipper" ]; 33 34 meta = with lib; { 35 description = "Cython wrapper for clipper library"; 36 homepage = "https://github.com/fonttools/pyclipper"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ matthuszagh ]; 39 }; 40}