<commit_before>{ stdenv, fetchurl, python2Packages, librsync, ncftp, gnupg, rsync, makeWrapper
}:

let
  version = "0.7.07.1";
in python2Packages.buildPythonApplication {
  name = "duplicity-${version}";

  src = fetchurl {
    url = "http://code.launchpad.net/duplicity/0.7-series/${version}/+download/duplicity-${version}.tar.gz";
    sha256 = "594c6d0e723e56f8a7114d57811c613622d535cafdef4a3643a4d4c89c1904f8";
  };

  postInstall = ''
    wrapProgram $out/bin/duplicity \
      --prefix PATH : "${stdenv.lib.makeBinPath [ gnupg ncftp rsync ]}"
  '';

  buildInputs = [ librsync makeWrapper ];

  # Inputs for tests. These are added to buildInputs when doCheck = true
  checkInputs = with python2Packages; [ lockfile mock pexpect ];

  # Many problematic tests
  doCheck = false;

  propagatedBuildInputs = with python2Packages; [ boto cffi cryptography ecdsa enum idna
    ipaddress lockfile paramiko pyasn1 pycrypto six ];

  meta = {
    description = "Encrypted bandwidth-efficient backup using the rsync algorithm";
    homepage = "http://www.nongnu.org/duplicity";
    license = stdenv.lib.licenses.gpl2Plus;
    maintainers = with stdenv.lib.maintainers; [<NAME>];
    platforms = with stdenv.lib.platforms; linux;
  };
}<commit_msg>duplicity: refactor allow builds on non linux<commit_after>{ stdenv, fetchurl, python2Packages, librsync, ncftp, gnupg, rsync, makeWrapper
}:

let
  version = "0.7.07.1";
in python2Packages.buildPythonApplication {
  name = "duplicity-${version}";

  src = fetchurl {
    url = "http://code.launchpad.net/duplicity/0.7-series/${version}/+download/duplicity-${version}.tar.gz";
    sha256 = "594c6d0e723e56f8a7114d57811c613622d535cafdef4a3643a4d4c89c1904f8";
  };

  postInstall = ''
    wrapProgram $out/bin/duplicity \
      --prefix PATH : "${stdenv.lib.makeBinPath [ gnupg ncftp rsync ]}"
  '';

  buildInputs = [ librsync makeWrapper ];

  # Inputs for tests. These are added to buildInputs when doCheck = true
  checkInputs = with python2Packages; [ lockfile mock pexpect ];

  # Many problematic tests
  doCheck = false;

  propagatedBuildInputs = with python2Packages; [ boto cffi cryptography ecdsa enum idna
    ipaddress lockfile paramiko pyasn1 pycrypto six ];

  meta = {
    description = "Encrypted bandwidth-efficient backup using the rsync algorithm";
    homepage = "http://www.nongnu.org/duplicity";
    license = stdenv.lib.licenses.gpl2Plus;
    maintainers = with stdenv.lib.maintainers; [<NAME>];
    platforms = stdenv.lib.platforms.unix;
  };
}
{'fraction_non_alphanumeric': 0.11589008363201912, 'fraction_numerical': 0.04699322978892871, 'mean_word_length': 4.024, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7645699', 'n_tokens_mistral': 944, 'n_tokens_neox': 870, 'n_words': 188}