about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyclipper/default.nix
blob: 27a2a1d80844922d34a21ac1846c9fef2b273482 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, fetchPypi
, buildPythonPackage
, setuptools_scm
, cython
}:

buildPythonPackage rec {
  pname = "pyclipper";
  version = "1.2.1";

  src = fetchPypi {
    inherit pname version;
    extension = "zip";
    sha256 = "ca3751e93559f0438969c46f17459d07f983281dac170c3479de56492e152855";
  };

  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 lib; {
    description = "Cython wrapper for clipper library";
    homepage    = "https://github.com/fonttools/pyclipper";
    license     = licenses.mit;
    maintainers = with maintainers; [ matthuszagh ];
  };
}