Unverified Commit ae31c144 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.flask-dance: reduce dependencies (#475059)

parents 3a9542aa 0d96cf4c
Loading
Loading
Loading
Loading
+13 −35
Original line number Diff line number Diff line
@@ -3,26 +3,19 @@
  betamax,
  blinker,
  buildPythonPackage,
  coverage,
  fetchFromGitHub,
  flask,
  flask-caching,
  flask-login,
  flask-sqlalchemy,
  flit,
  flit-core,
  freezegun,
  oauthlib,
  pallets-sphinx-themes,
  pillow,
  pytest,
  pytest-mock,
  pytestCheckHook,
  requests,
  requests-oauthlib,
  responses,
  sphinx,
  sphinxcontrib-seqdiag,
  sphinxcontrib-spelling,
  sqlalchemy,
  urlobject,
  werkzeug,
@@ -40,7 +33,7 @@ buildPythonPackage rec {
    hash = "sha256-rKHC0G5S7l52QSrbbweMii68AZuBAgf6tYsJdPKIeUk=";
  };

  build-system = [ flit ];
  build-system = [ flit-core ];

  dependencies = [
    flask
@@ -52,36 +45,21 @@ buildPythonPackage rec {
  ];

  optional-dependencies = {
    docs = [
      betamax
      pallets-sphinx-themes
      pillow
      sphinx
      sphinxcontrib-seqdiag
      sphinxcontrib-spelling
      sqlalchemy
    ];

    signals = [ blinker ];

    sqla = [ sqlalchemy ];
  };

    test = [
  nativeCheckInputs = [
    betamax
      coverage
    flask-caching
    flask-login
    flask-sqlalchemy
    freezegun
      oauthlib
      pytest
    pytest-mock
    pytestCheckHook
    responses
      sqlalchemy
    ];
  };

  nativeCheckInputs = [ pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies;
  ]
  ++ lib.concatAttrValues optional-dependencies;

  pythonImportsCheck = [ "flask_dance" ];