nixpkgs/pkgs/development/python-modules/pyclipper/default.nix

36 lines
810 B
Nix
Raw Normal View History

{ lib
2020-04-23 17:05:20 +01:00
, fetchPypi
, buildPythonPackage
, setuptools-scm
2020-04-23 17:05:20 +01:00
, cython
}:
buildPythonPackage rec {
pname = "pyclipper";
version = "1.3.0";
2020-04-23 17:05:20 +01:00
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "48a1b5c585aea10e5b9c0b82d6abe2642fafd9ef158b9921852bc4af815ca20c";
2020-04-23 17:05:20 +01:00
};
nativeBuildInputs = [
setuptools-scm
2020-04-23 17:05:20 +01:00
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; {
2020-04-23 17:05:20 +01:00
description = "Cython wrapper for clipper library";
homepage = "https://github.com/fonttools/pyclipper";
license = licenses.mit;
maintainers = with maintainers; [ matthuszagh ];
};
}