<commit_before>{ lib
, pkgs
, python3Packages
, nixosTests
}:

python3Packages.buildPythonApplication rec {
  pname = "steck";
  version = "0.7.0";

  src = python3Packages.fetchPypi {
    inherit pname version;
    sha256 = "1a3l427ibwck9zzzy1sp10hmjgminya08i4r9j4559qzy7lxghs1";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace 'click>=7.0,<8.0' 'click'
  '';

  propagatedBuildInputs = with python3Packages; [
    pkgs.git
    appdirs
    click
    python-magic
    requests
    termcolor
    toml
  ];

  # tests are not in pypi package
  doCheck = false;

  passthru.tests = nixosTests.pinnwand;

  meta = with lib; {
    homepage = "https://github.com/supakeen/steck";
    license = licenses.mit;
    description = "Client for pinnwand pastebin";
    maintainers = with maintainers; [ hexa ];
  };
}

<commit_msg>steck: add setuptools to nativeBuildInputs<commit_after>{ lib
, pkgs
, python3Packages
, nixosTests
}:

python3Packages.buildPythonApplication rec {
  pname = "steck";
  version = "0.7.0";

  src = python3Packages.fetchPypi {
    inherit pname version;
    sha256 = "1a3l427ibwck9zzzy1sp10hmjgminya08i4r9j4559qzy7lxghs1";
  };

  postPatch = ''
    cat setup.py
    substituteInPlace setup.py \
      --replace 'click>=7.0,<8.0' 'click' \
      --replace 'termcolor>=1.1.0,<2.0.0' 'termcolor'
  '';

  nativeBuildInputs = with python3Packages; [
    setuptools
  ];

  propagatedBuildInputs = with python3Packages; [
    pkgs.git
    appdirs
    click
    python-magic
    requests
    termcolor
    toml
  ];

  # tests are not in pypi package
  doCheck = false;

  passthru.tests = nixosTests.pinnwand;

  meta = with lib; {
    homepage = "https://github.com/supakeen/steck";
    license = licenses.mit;
    description = "Client for pinnwand pastebin";
    maintainers = with maintainers; [ hexa ];
  };
}


{'fraction_non_alphanumeric': 0.11225040474905558, 'fraction_numerical': 0.03939557474365893, 'mean_word_length': 3.0392156862745097, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '4099373', 'n_tokens_mistral': 727, 'n_tokens_neox': 694, 'n_words': 133}