anchor.diff:        tempest-lib mox3 oslotest requests-mock
       ];
   
  +    patchPhase = ''
  +      sed -i 's@python@${python.interpreter}@' .testr.conf
  +      # test fails on py3k
  +      ${if isPy3k then "substituteInPlace neutronclient/tests/unit/test_cli20_port.py --replace 'test_list_ports_with_fixed_ips_in_csv' 'noop'" else ""}
  +    '';
  +
       meta = with stdenv.lib; {
         description = "Python bindings to the Neutron API";
         homepage = "http://www.openstack.org/";
  
positive.code: 
      patchPhase = ''
        substituteInPlace tempest_lib/tests/cli/test_execute.py --replace "/bin/ls" "${pkgs.coreutils}/bin/ls"
      '';
  
      buildInputs = with self; [ testtools testrepository subunit oslotest ];
  
negative.code:     buildInputs = with self; [
        oslosphinx oslotest requests-mock
      ];
  
      patchPhase = ''
        sed -i 's@python@${python.interpreter}@' .testr.conf
      '';
    };
  
  
  