Unverified Commit 30bb766f authored by kirillrdy's avatar kirillrdy Committed by GitHub
Browse files

python3Packages.rendercanvas: 2.5.1 -> 2.5.2 (#475233)

parents 2f85dab9 736236ab
Loading
Loading
Loading
Loading
+11 −10
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  buildPythonPackage,

  # build-system
  flit-core,

  # dependencies
  sniffio,

  # nativeCheckInputs
  pytestCheckHook,
  imageio,
@@ -17,25 +13,28 @@
  numpy,
  trio,
  wgpu-py,

  nix-update-script,
}:
buildPythonPackage rec {
  pname = "rendercanvas";
  version = "2.5.1";
  version = "2.5.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pygfx";
    repo = "rendercanvas";
    tag = "v${version}";
    hash = "sha256-FjKotBAGEtM5JYA3PGeoSl3v4m6vq1EE/r/gCsabdIo=";
    hash = "sha256-fOjiGNxEUVI+jddrwqrlBYT+CAMDQCIPNHwGonBH4Hk=";
  };

  postPatch = ''
    rm -r rendercanvas/__pyinstaller
  '';

  env = {
    # This relaxes the timeing assertions thus making the tests less flaky
    CI = "1";
  };

  build-system = [ flit-core ];

  nativeCheckInputs = [
@@ -48,10 +47,13 @@ buildPythonPackage rec {
    (wgpu-py.overrideAttrs { doInstallCheck = false; })
  ];

  # flaky timing and / or interrupt based tests
  disabledTests = [
    # flaky timing and / or interrupt based tests
    "test_offscreen_event_loop"
    "test_call_later_thread"

    # AssertionError
    "test_that_we_are_on_lavapipe"
  ];
  disabledTestPaths = [
    "tests/test_loop.py"
@@ -64,7 +66,6 @@ buildPythonPackage rec {
    description = "One canvas API, multiple backends";
    homepage = "https://github.com/pygfx/rendercanvas";
    changelog = "https://github.com/pygfx/rendercanvas/releases/tag/${src.tag}";

    platforms = lib.platforms.all;
    license = lib.licenses.bsd2;
    maintainers = [ lib.maintainers.bengsparks ];
+3 −3
Original line number Diff line number Diff line
@@ -127,9 +127,9 @@ buildPythonPackage rec {
  installCheckPhase = ''
    runHook preInstallCheck

    for suite in tests examples codegen tests_mem; do
      pytest -vvv $suite
    done
    pytest tests -k "not test_render_timestamps_inside_encoder"
    pytest examples
    pytest tests_mem

    runHook postInstallCheck
  '';