<commit_before>{ lib
, buildPythonPackage
, pyopenssl
, pkgs
, isPy3k
, python
}:

buildPythonPackage {
  pname = "deskcon";
  version = "0.3";
  disabled = isPy3k;

  src = pkgs.fetchFromGitHub {
    owner= "screenfreeze";
    repo = "deskcon-desktop";
    rev = "267804122188fa79c37f2b21f54fe05c898610e6";
    sha256 ="0i1dd85ls6n14m9q7lkympms1w3x0pqyaxvalq82s4xnjdv585j3";
  };

  phases = [ "unpackPhase" "installPhase" ];

  pythonPath = [ pyopenssl pkgs.gtk3 ];

  installPhase = ''
    substituteInPlace server/deskcon-server --replace "python2" "python"

    mkdir -p $out/bin
    mkdir -p $out/lib/${python.libPrefix}/site-packages<commit_msg>deskcon: deprecate phases<commit_after>{ lib
, buildPythonPackage
, pyopenssl
, pkgs
, isPy3k
, python
}:

buildPythonPackage {
  pname = "deskcon";
  version = "0.3";
  disabled = isPy3k;

  src = pkgs.fetchFromGitHub {
    owner= "screenfreeze";
    repo = "deskcon-desktop";
    rev = "267804122188fa79c37f2b21f54fe05c898610e6";
    sha256 ="0i1dd85ls6n14m9q7lkympms1w3x0pqyaxvalq82s4xnjdv585j3";
  };

  dontBuild = true;
  doCheck = false;

  pythonPath = [ pyopenssl pkgs.gtk3 ];

  installPhase = ''
    substituteInPlace server/deskcon-server --replace "python2" "python"

    mkdir -p $out/bin
    mkdir -p $out/lib/${python.libPrefix}/site-packages
{'fraction_non_alphanumeric': 0.12290076335877863, 'fraction_numerical': 0.08854961832061069, 'mean_word_length': 3.9471698113207547, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '670955', 'n_tokens_mistral': 605, 'n_tokens_neox': 521, 'n_words': 86}