Merge pull request #173876 from fabaff/pyclipper-fix

python310Packages.pyclipper: 1.3.0 -> 1.3.0.post2
This commit is contained in:
Fabian Affolter 2022-05-21 22:19:45 +02:00 committed by GitHub
commit 5e3ccb7188
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,34 +1,45 @@
{ lib
, fetchPypi
, fetchFromGitHub
, buildPythonPackage
, setuptools-scm
, cython
, pytestCheckHook
, unittest2
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyclipper";
version = "1.3.0";
version = "1.3.0.post2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "48a1b5c585aea10e5b9c0b82d6abe2642fafd9ef158b9921852bc4af815ca20c";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fonttools";
repo = pname;
rev = version;
hash = "sha256-AFdfzM1zdhmfh3Uu5fFVOMWStbuHxKS3FovZPTeuNFA=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
cython
];
checkInputs = [ pytestCheckHook unittest2 ];
pythonImportsCheck = [ "pyclipper" ];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pyclipper"
];
meta = with lib; {
description = "Cython wrapper for clipper library";
homepage = "https://github.com/fonttools/pyclipper";
license = licenses.mit;
homepage = "https://github.com/fonttools/pyclipper";
license = licenses.mit;
maintainers = with maintainers; [ matthuszagh ];
};
}