Files
nixpkgs/pkgs/development/python-modules/beziers/default.nix
Stefan Frijters 95f3ca0b86 python3Packages.beziers: fix pythonImportsCheck, use finalAttrs, tag
pythonImportsCheckHook is automatically added via buildPythonPackage.
Also, pythonImportsCheckFlags is incorrect.
2026-08-09 00:59:05 +02:00

57 lines
1.2 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
dotmap,
matplotlib,
pyclipper,
pytestCheckHook,
setuptools,
gitUpdater,
}:
buildPythonPackage (finalAttrs: {
pname = "beziers";
version = "0.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "simoncozens";
repo = "beziers.py";
tag = "v${finalAttrs.version}";
hash = "sha256-NjmWsRz/NPPwXPbiSaOeKJMrYmSyNTt5ikONyAljgvM=";
};
build-system = [ setuptools ];
dependencies = [ pyclipper ];
preCheck = ''
# silence matplotlib warning
export MPLCONFIGDIR=$(mktemp -d)
'';
nativeCheckInputs = [
dotmap
matplotlib
pytestCheckHook
];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# Fails on macOS with Trace/BPT trap: 5 - something to do with recursion depth
"test_cubic_cubic"
];
pythonImportsCheck = [ "beziers" ];
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = {
description = "Python library for manipulating Bezier curves and paths in fonts";
homepage = "https://github.com/simoncozens/beziers.py";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ danc86 ];
};
})