2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-04-23 17:05:20 +01:00
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
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
|
|
|
|
, unittest2
|
2020-04-23 17:05:20 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyclipper";
|
2021-08-20 00:37:19 +01:00
|
|
|
version = "1.3.0";
|
2020-04-23 17:05:20 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2021-08-20 00:37:19 +01:00
|
|
|
sha256 = "48a1b5c585aea10e5b9c0b82d6abe2642fafd9ef158b9921852bc4af815ca20c";
|
2020-04-23 17:05:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
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
|
|
|
checkInputs = [ pytestCheckHook unittest2 ];
|
2020-04-23 17:05:20 +01:00
|
|
|
pythonImportsCheck = [ "pyclipper" ];
|
|
|
|
|
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";
|
|
|
|
homepage = "https://github.com/fonttools/pyclipper";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ matthuszagh ];
|
|
|
|
};
|
|
|
|
}
|