Commit 1e11e207 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python3Packages.cachier: unbreak

parent 464767ca
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,
@@ -9,6 +10,7 @@
  portalocker,
  pytestCheckHook,
  pytest-cov-stub,
  sqlalchemy,
  pymongo,
  dnspython,
  pymongo-inmemory,
@@ -46,6 +48,7 @@ buildPythonPackage rec {
  nativeCheckInputs = [
    pytestCheckHook
    pytest-cov-stub
    sqlalchemy
    pymongo
    dnspython
    pymongo-inmemory
@@ -67,9 +70,23 @@ buildPythonPackage rec {
    # don't test formatting
    "test_flake8"

    # slow, spawns 800+ threads
    "test_inotify_instance_limit_reached"

    # timing sensitive
    "test_being_calc_next_time"
    "test_pickle_being_calculated"
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    # sensitive to host file system
    # Unhandled exception in FSEventsEmitter -  RuntimeError: Cannot add watch - it is already scheduled
    "test_bad_cache_file"
    "test_delete_cache_file"
  ];

  disabledTestPaths = [
    # Keeps breaking due to concurrent access or failing to close the db between tests.
    "tests/test_sql_core.py"
  ];

  preBuild = ''