Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ 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 ]; };})