forked from mirrors/nixpkgs
36 lines
814 B
Nix
36 lines
814 B
Nix
|
{ stdenv
|
||
|
, fetchPypi
|
||
|
, buildPythonPackage
|
||
|
, setuptools_scm
|
||
|
, cython
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "pyclipper";
|
||
|
version = "1.1.0.post3";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
extension = "zip";
|
||
|
sha256 = "164yksvqwqvwzh8f8lq92asg87hd8rvcy2xb5vm4y4ccvd5xgb7i";
|
||
|
};
|
||
|
|
||
|
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" ];
|
||
|
|
||
|
meta = with stdenv.lib; {
|
||
|
description = "Cython wrapper for clipper library";
|
||
|
homepage = "https://github.com/fonttools/pyclipper";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ matthuszagh ];
|
||
|
};
|
||
|
}
|