anchor.diff: -{ lib, fetchPypi, python, buildPythonPackage, isPy38
  -, cython, bzip2, lzo, numpy, numexpr, hdf5, six, c-blosc, mock }:
  +{ lib
  +, fetchPypi
  +, fetchurl
  +, fetchpatch
  +, buildPythonPackage
  +, pythonOlder
  +, python
  +, bzip2
  +, c-blosc
  +, cython
  +, hdf5
  +, lzo
  +, numpy
  +, numexpr
  +, setuptools
  +  # Test inputs
  +, pytestCheckHook
  +}:
   
   buildPythonPackage rec {
  +  pname = "tables";
     version = "3.6.1";
  -  pname = "tables";
  +  disabled = pythonOlder "3.5";
   
     src = fetchPypi {
       inherit pname version;
  
positive.code: 
    nativeBuildInputs = [ cython ];
  
    buildInputs = [ hdf5 bzip2 lzo c-blosc ];
    propagatedBuildInputs = [ numpy numexpr six mock ];
  
    # When doing `make distclean`, ignore docs
    postPatch = ''
      substituteInPlace Makefile --replace "src doc" "src"
    '';
  
    # Regenerate C code with Cython
  
negative.code:     make distclean
    '';
  
    setupPyBuildFlags = [
      "--hdf5=${lib.getDev hdf5}"
      "--lzo=${lib.getDev lzo}"
      "--bzip2=${lib.getDev bzip2}"
      "--blosc=${lib.getDev c-blosc}"
    ];
  
    checkInputs = [ pytestCheckHook ];
    preCheck = ''
      cd ..
    '';
    # Runs the test suite as one single test via unittest. The whole "heavy" test suite supposedly takes ~5 hours to run.
    pytestFlagsArray = [
      "--pyargs"
      "tables.tests.test_suite"
    ];
  
    pythonImportsCheck = [ "tables" ];
  
    meta = with lib; {
      description = "Hierarchical datasets for Python";
      homepage = "https://www.pytables.org/";
      license = licenses.bsd2;
      maintainers = with maintainers; [ drewrisinger ];
    };
  }
  