Unverified Commit e855ed38 authored by Amadej Kastelic's avatar Amadej Kastelic
Browse files

python3Packages.beziers: fix darwin build

parent 5e40f9bf
Loading
Loading
Loading
Loading
+16 −6
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  dotmap,
  matplotlib,
  pyclipper,
  pytestCheckHook,
  pythonImportsCheckHook,
  setuptools,
  unittestCheckHook,
  gitUpdater,
}:

@@ -26,17 +28,25 @@ buildPythonPackage rec {

  dependencies = [ pyclipper ];

  preCheck = ''
    # silence matplotlib warning
    export MPLCONFIGDIR=$(mktemp -d)
  '';

  nativeCheckInputs = [
    dotmap
    matplotlib
    unittestCheckHook
    pytestCheckHook
    pythonImportsCheckHook
  ];
  unittestFlagsArray = [
    "-s"
    "test"
    "-v"

  disabledTests = lib.optionals stdenv.isDarwin [
    # Fails on macOS with Trace/BPT trap: 5 - something to do with recursion depth
    "test_cubic_cubic"
  ];

  pythonImportsCheckFlags = [ "beziers" ];

  passthru.updateScript = gitUpdater { rev-prefix = "v"; };

  meta = {