anchor.diff:    '';
   
     # Tests require root privileges to open privilaged ports
  -  # We cannot run them
     doCheck = false;
   
     pythonImportsCheck = [
  
positive.code: { lib, buildPythonPackage, snap7, fetchFromGitHub, six, setuptools }:
  
  buildPythonPackage rec {
    pname = "python-snap7";
    version = "1.2";
  
    src = fetchFromGitHub {
      owner = "gijzelaerr";
      repo = "python-snap7";
      rev = "refs/tags/${version}";
      sha256 = "sha256-xkkJE3wTqS6spwEmQ+HBY1Szao1VFoqmQ041vnAYuqQ=";
    };
  
    propagatedBuildInputs = [ setuptools six ];
  
    prePatch = ''
      substituteInPlace snap7/common.py \
  
negative.code:   ];
  
    meta = with lib; {
      description = "Python wrapper for the snap7 PLC communication library";
      homepage = "https://github.com/gijzelaerr/python-snap7";
      license = licenses.mit;
      maintainers = with maintainers; [ freezeboy ];
  