<commit_before>{ stdenv
, fetchurl
, lib
, waf

, lv2
, serd
, sord
}:

stdenv.mkDerivation rec {
  name = "sratom-0.4.6";

  src = fetchurl {
    url = "https://download.drobilla.net/${name}.tar.bz2";
    sha256 = "a4b9beaeaedc4f651beb15cd1cfedff905b0726a9010548483475ad97d941220";
  };

  nativeBuildInputs = [
    waf
  ];

  buildInputs = [
    lv2
    serd
    sord
  ];

  passthru = {
    srcVerification = fetchurl {
      inherit (src)
        outputHash
        outputHashAlgo
        urls;
      failEarly = true;
      pgpsigUrls = map (n: "${n}.sig") src.urls;<commit_msg>sratom: 0.4.6 -> 0.6.0<commit_after>{ stdenv
, fetchurl
, lib
, waf

, lv2
, serd
, sord
}:

stdenv.mkDerivation rec {
  name = "sratom-0.6.0";

  src = fetchurl {
    url = "https://download.drobilla.net/${name}.tar.bz2";
    multihash = "QmRwaS73mJBCesaPCWEaN9rgGGMhrKYjGQjRkx65NyESTp";
    sha256 = "440ac2b1f4f0b7878f8b95698faa1e8f8c50929a498f68ec5d066863626a3d43";
  };

  nativeBuildInputs = [
    waf
  ];

  buildInputs = [
    lv2
    serd
    sord
  ];

  postPatch = /* Fix compatibility with newer autowaf */ ''
    sed -i wscript \
      -e 's/test=True/debug_by_default=False/'
  '';


  passthru = {
    srcVerification = fetchurl {
      inherit (src)
        outputHash
        outputHashAlgo
        urls;
      failEarly = true;
      pgpsigUrls = map (n: "${n}.asc") src.urls;
{'fraction_non_alphanumeric': 0.12816799420709632, 'fraction_numerical': 0.07892831281679942, 'mean_word_length': 2.49873417721519, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '3811712', 'n_tokens_mistral': 651, 'n_tokens_neox': 594, 'n_words': 92}