<commit_before>{ lib, buildPythonPackage, fetchFromGitHub, requests }:

buildPythonPackage rec {
  pname = "youtube-search";
  version = "unstable-2021-02-27";

  src = fetchFromGitHub {
    owner = "joetats";
    repo = "youtube_search";
    rev = "886fe1b16c829215ee0984b6859f874b4a30d875";
    sha256 = "sha256-3ECJ6iHNzx5PLgpTFraFzAYbKnyMYRf/iJ0zajU+hlo=";
  };

  propagatedBuildInputs = [ requests ];

  # Check disabled due to relative import with no known parent package
  doCheck = false;
  pythonImportsCheck = [ "youtube_search" ];

  meta = with lib; {<commit_msg>python3Packages.youtube-search: use fetchPypi<commit_after>{ lib, buildPythonPackage, fetchPypi, requests }:

buildPythonPackage rec {
  pname = "youtube-search";
  version = "2.1.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1541120273996fa433698b2e57b73296dfb8e90536211f29ea997dcf161b66fe";
  };

  propagatedBuildInputs = [ requests ];

  # tests require network connection
  doCheck = false;

  pythonImportsCheck = [ "youtube_search" ];

  meta = with lib; {
{'fraction_non_alphanumeric': 0.1048158640226629, 'fraction_numerical': 0.09442870632672333, 'mean_word_length': 4.463917525773196, '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': '3519767', 'n_tokens_mistral': 445, 'n_tokens_neox': 375, 'n_words': 74}