1{ stdenv
2, fetchPypi
3, buildPythonPackage
4, setuptools_scm
5, cython
6}:
7
8buildPythonPackage rec {
9 pname = "pyclipper";
10 version = "1.2.0";
11
12 src = fetchPypi {
13 inherit pname version;
14 extension = "zip";
15 sha256 = "0irs5sn6ldpg70630nfndghjnpxv8jldk61zyczfzp1jcz53b43s";
16 };
17
18 nativeBuildInputs = [
19 setuptools_scm
20 cython
21 ];
22
23 # Requires pytest_runner to perform tests, which requires deprecated
24 # features of setuptools. Seems better to not run tests. This should
25 # be fixed upstream.
26 doCheck = false;
27 pythonImportsCheck = [ "pyclipper" ];
28
29 meta = with stdenv.lib; {
30 description = "Cython wrapper for clipper library";
31 homepage = "https://github.com/fonttools/pyclipper";
32 license = licenses.mit;
33 maintainers = with maintainers; [ matthuszagh ];
34 };
35}