nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 setuptools,
6 setuptools-scm,
7 cython,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "pyclipper";
13 version = "1.4.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "fonttools";
18 repo = "pyclipper";
19 tag = version;
20 hash = "sha256-mh+F3iFCItmLbV6bF7Mi5IaWwjcKrE9Nk6lxglyFUg4=";
21 };
22
23 build-system = [
24 setuptools
25 setuptools-scm
26 cython
27 ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "pyclipper" ];
32
33 meta = {
34 description = "Cython wrapper for clipper library";
35 homepage = "https://github.com/fonttools/pyclipper";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ matthuszagh ];
38 };
39}