2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-04-23 17:05:20 +01:00
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, setuptools_scm
|
|
|
|
, cython
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyclipper";
|
2020-12-30 09:39:45 +00:00
|
|
|
version = "1.2.1";
|
2020-04-23 17:05:20 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2020-12-30 09:39:45 +00:00
|
|
|
sha256 = "ca3751e93559f0438969c46f17459d07f983281dac170c3479de56492e152855";
|
2020-04-23 17:05:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
# Requires pytest_runner to perform tests, which requires deprecated
|
|
|
|
# features of setuptools. Seems better to not run tests. This should
|
|
|
|
# be fixed upstream.
|
|
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|