My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyclipper/default.nix

45 lines
819 B

{ lib
, fetchFromGitHub
, buildPythonPackage
, setuptools-scm
, cython
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyclipper";
version = "1.3.0.post2";
format = "setuptools";
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
];
pythonImportsCheck = [
"pyclipper"
];
meta = with lib; {
description = "Cython wrapper for clipper library";
homepage = "https://github.com/fonttools/pyclipper";
license = licenses.mit;
maintainers = with maintainers; [ matthuszagh ];
};
}