Merge pull request #173876 from fabaff/pyclipper-fix
python310Packages.pyclipper: 1.3.0 -> 1.3.0.post2main
commit
5e3ccb7188
@ -1,34 +1,45 @@ |
|||||||
{ lib |
{ lib |
||||||
, fetchPypi |
, fetchFromGitHub |
||||||
, buildPythonPackage |
, buildPythonPackage |
||||||
, setuptools-scm |
, setuptools-scm |
||||||
, cython |
, cython |
||||||
, pytestCheckHook |
, pytestCheckHook |
||||||
, unittest2 |
, pythonOlder |
||||||
}: |
}: |
||||||
|
|
||||||
buildPythonPackage rec { |
buildPythonPackage rec { |
||||||
pname = "pyclipper"; |
pname = "pyclipper"; |
||||||
version = "1.3.0"; |
version = "1.3.0.post2"; |
||||||
|
format = "setuptools"; |
||||||
|
|
||||||
src = fetchPypi { |
disabled = pythonOlder "3.7"; |
||||||
inherit pname version; |
|
||||||
extension = "zip"; |
src = fetchFromGitHub { |
||||||
sha256 = "48a1b5c585aea10e5b9c0b82d6abe2642fafd9ef158b9921852bc4af815ca20c"; |
owner = "fonttools"; |
||||||
|
repo = pname; |
||||||
|
rev = version; |
||||||
|
hash = "sha256-AFdfzM1zdhmfh3Uu5fFVOMWStbuHxKS3FovZPTeuNFA="; |
||||||
}; |
}; |
||||||
|
|
||||||
|
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||||
|
|
||||||
nativeBuildInputs = [ |
nativeBuildInputs = [ |
||||||
setuptools-scm |
setuptools-scm |
||||||
cython |
cython |
||||||
]; |
]; |
||||||
|
|
||||||
checkInputs = [ pytestCheckHook unittest2 ]; |
checkInputs = [ |
||||||
pythonImportsCheck = [ "pyclipper" ]; |
pytestCheckHook |
||||||
|
]; |
||||||
|
|
||||||
|
pythonImportsCheck = [ |
||||||
|
"pyclipper" |
||||||
|
]; |
||||||
|
|
||||||
meta = with lib; { |
meta = with lib; { |
||||||
description = "Cython wrapper for clipper library"; |
description = "Cython wrapper for clipper library"; |
||||||
homepage = "https://github.com/fonttools/pyclipper"; |
homepage = "https://github.com/fonttools/pyclipper"; |
||||||
license = licenses.mit; |
license = licenses.mit; |
||||||
maintainers = with maintainers; [ matthuszagh ]; |
maintainers = with maintainers; [ matthuszagh ]; |
||||||
}; |
}; |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue