Unverified Commit caa5f059 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

python312Packages.pytrends: drop (#378762)

parents bedf6242 7401d8c7
Loading
Loading
Loading
Loading
+0 −59
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  setuptools-scm,
  wheel,
  requests,
  lxml,
  pandas,
  pytestCheckHook,
  pytest-recording,
  responses,
}:

buildPythonPackage rec {
  pname = "pytrends";
  version = "4.9.2";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-aRxuNrGuqkdU82kr260N/0RuUo/7BS7uLn8TmqosaYk=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace 'addopts = "--cov pytrends/"' ""
  '';

  nativeBuildInputs = [
    setuptools
    setuptools-scm
    wheel
  ];

  propagatedBuildInputs = [
    requests
    lxml
    pandas
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-recording
    responses
  ];

  pytestFlagsArray = [ "--block-network" ];

  pythonImportsCheck = [ "pytrends" ];

  meta = with lib; {
    description = "Pseudo API for Google Trends";
    homepage = "https://github.com/GeneralMills/pytrends";
    license = [ licenses.asl20 ];
    maintainers = [ maintainers.mmahut ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -508,6 +508,7 @@ mapAliases ({
  pynose = throw "pynose was removed, because it violates the license of nose, by redistributing modified LGPL code under MIT.";
  python-ethtool = ethtool; # added 2024-07-23
  python-myq = throw "python-myq has been removed, as the service provider has decided to block its API requests"; # added 2023-12-07
  pytrends = throw "pytrends has been removed, as it no longer works and is abandoned upstream"; # added 2025-02-02
  pyqt4 = throw "pyqt4 has been removed, because it depended on the long EOL qt4"; # added 2022-06-09
  pyqt5_sip = pyqt5-sip; # added 2024-01-07
  pyqt5_with_qtmultimedia = pyqt5-multimedia; # added 2024-01-07
+0 −2
Original line number Diff line number Diff line
@@ -13621,8 +13621,6 @@ self: super: with self; {
  pytransportnswv2 = callPackage ../development/python-modules/pytransportnswv2 { };
  pytrends = callPackage ../development/python-modules/pytrends { };
  pytricia = callPackage ../development/python-modules/pytricia { };
  pytrydan = callPackage ../development/python-modules/pytrydan { };