anchor.diff:    ];
   
     postPatch = ''
  +    # for setuptools_scm:
  +    echo 'Version: ${version}' >PKG-INFO
  +
       sed -i 's/spec.add_external_build(cmd=cmd/spec.add_external_build(cmd="true"/g' setup.py
     '';
   
  
positive.code: 
    checkPhase = ''
      rm -rf vdirsyncer
      export PYTHONPATH=$out/${pythonPackages.python.sitePackages}:$PYTHONPATH
      make DETERMINISTIC_TESTS=true test
    '';
  
  
negative.code:     shippai
    ];
  
    buildInputs = with python3Packages; [ setuptools_scm ];
  
    checkInputs = with python3Packages; [ hypothesis pytest pytest-localserver pytest-subtesthack ] ++ [ glibcLocales ];
  
    patches = [
      # Fixes for hypothesis: https://github.com/pimutils/vdirsyncer/pull/779
      (fetchpatch {
        url = https://github.com/pimutils/vdirsyncer/commit/22ad88a6b18b0979c5d1f1d610c1d2f8f87f4b89.patch;
        sha256 = "0dbzj6jlxhdidnm3i21a758z83sdiwzhpd45pbkhycfhgmqmhjpl";
  