python312Packages.pytrends: drop (#378762)

This commit is contained in:
Aleksana
2025-02-12 11:10:20 +08:00
committed by GitHub
3 changed files with 1 additions and 61 deletions

View File

@@ -1,59 +0,0 @@
{
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 ];
};
}

View File

@@ -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

View File

@@ -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 { };