<commit_before>{ lib
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
  pname = "libpyfoscam";
  version = "1.2.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-2E6zQT86UEOKoFnAfXfeWt352HIdOQZBGy5vR0WQO6Y=";
  };

  # tests need access to a camera
  doCheck = false;

  pythonImportsCheck = [ "libpyfoscam" ];

  meta = with lib; {
    description = "Python Library for Foscam IP Cameras";
    homepage = "https://github.com/viswa-swami/python-foscam";
    license = licenses.lgpl3Plus;
    maintainers = with maintainers; [ dotlambda ];
  };
}<commit_msg>python310Packages.libpyfoscam: disable on older Python releases<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
}:

buildPythonPackage rec {
  pname = "libpyfoscam";
  version = "1.2.1";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-2E6zQT86UEOKoFnAfXfeWt352HIdOQZBGy5vR0WQO6Y=";
  };

  # tests need access to a camera
  doCheck = false;

  pythonImportsCheck = [
    "libpyfoscam"
  ];

  meta = with lib; {
    description = "Python Library for Foscam IP Cameras";
    homepage = "https://github.com/krmarien/python-foscam";
    license = licenses.lgpl3Plus;
    maintainers = with maintainers; [ dotlambda ];
  };
}
{'fraction_non_alphanumeric': 0.11382734912146678, 'fraction_numerical': 0.03208556149732621, 'mean_word_length': 3.6619217081850532, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2010294', 'n_tokens_mistral': 519, 'n_tokens_neox': 482, 'n_words': 101}