Unverified Commit 4b4a3bf7 authored by Emily's avatar Emily Committed by GitHub
Browse files

Merge pull request #330436 from lavafroth/woob-duplicate

python3Packages.weboob: drop
parents 1d72886b 5fc5297b
Loading
Loading
Loading
Loading
+0 −91
Original line number Diff line number Diff line
{
  lib,
  babel,
  buildPythonPackage,
  cssselect,
  feedparser,
  fetchPypi,
  gdata,
  gnupg,
  google-api-python-client,
  html2text,
  libyaml,
  lxml,
  mechanize,
  nose,
  pdfminer-six,
  pillow,
  prettytable,
  pyqt5,
  python-dateutil,
  pythonOlder,
  pyyaml,
  requests,
  simplejson,
  termcolor,
  unidecode,
}:

buildPythonPackage rec {
  pname = "weboob";
  version = "2.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1c69vzf8sg8471lcaafpz9iw2q3rfj5hmcpqrs2k59fkgbvy32zw";
  };

  nativeBuildInputs = [ pyqt5 ];

  propagatedBuildInputs = [
    babel
    cssselect
    python-dateutil
    feedparser
    gdata
    gnupg
    google-api-python-client
    html2text
    libyaml
    lxml
    mechanize
    pdfminer-six
    pillow
    prettytable
    pyqt5
    pyyaml
    requests
    simplejson
    termcolor
    unidecode
  ];

  postPatch = ''
    substituteInPlace setup.cfg \
      --replace "with-doctest = 1" "" \
      --replace "with-coverage = 1" "" \
      --replace "weboob.browser.filters.standard," "" \
      --replace "weboob.browser.tests.filters," "" \
      --replace "weboob.tools.application.formatters.json," "" \
      --replace "weboob.tools.application.formatters.table," "" \
      --replace "weboob.tools.capabilities.bank.transactions," ""
  '';

  nativeCheckInputs = [ nose ];

  checkPhase = ''
    nosetests
  '';

  pythonImportsCheck = [ "weboob" ];

  meta = with lib; {
    description = "Collection of applications and APIs to interact with websites";
    homepage = "http://weboob.org";
    license = licenses.agpl3Plus;
    maintainers = with maintainers; [ ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -608,6 +608,7 @@ mapAliases ({
  WazeRouteCalculator = wazeroutecalculator; # added 2021-09-29
  weakrefmethod = throw "weakrefmethod was removed since it's not needed in Python >= 3.4"; # added 2022-12-01
  webapp2 = throw "webapp2 is unmaintained since 2012"; # added 2022-05-29
  weboob = throw "weboob has been removed, please use woob instead"; # added 2024-07-27
  websocket_client = websocket-client; # added 2021-06-15
  word2vec = throw "word2vec has been removed because it is abandoned"; # added 2023-05-22
  wxPython_4_0 = throw "wxPython_4_0 has been removed, use wxpython instead"; # added 2023-03-19
+0 −2
Original line number Diff line number Diff line
@@ -17265,8 +17265,6 @@ self: super: with self; {
  webob = callPackage ../development/python-modules/webob { };
  weboob = callPackage ../development/python-modules/weboob { };
  webrtc-noise-gain = callPackage ../development/python-modules/webrtc-noise-gain { };
  webrtcvad = callPackage ../development/python-modules/webrtcvad { };