1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-05 15:22:36 +03:00
nixpkgs/pkgs/development/python-modules/pyclipper/default.nix

46 lines
834 B
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
2020-04-23 09:05:20 -07:00
, buildPythonPackage
, setuptools-scm
2020-04-23 09:05:20 -07:00
, cython
, pytestCheckHook
, pythonOlder
2020-04-23 09:05:20 -07:00
}:
buildPythonPackage rec {
pname = "pyclipper";
version = "1.3.0.post4";
format = "setuptools";
2020-04-23 09:05:20 -07:00
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fonttools";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-FMqOZ0WOorTtbdweeu9UdoUNWOPrcwc+0SK+55XxyQQ=";
2020-04-23 09:05:20 -07:00
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
2020-04-23 09:05:20 -07:00
nativeBuildInputs = [
setuptools-scm
2020-04-23 09:05:20 -07:00
cython
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pyclipper"
];
2020-04-23 09:05:20 -07:00
meta = with lib; {
2020-04-23 09:05:20 -07:00
description = "Cython wrapper for clipper library";
homepage = "https://github.com/fonttools/pyclipper";
license = licenses.mit;
2020-04-23 09:05:20 -07:00
maintainers = with maintainers; [ matthuszagh ];
};
}