Unverified Commit 6c2d8a10 authored by natsukium's avatar natsukium
Browse files

python312Packages.flask-bootstrap: refactor

parent ff3f956f
Loading
Loading
Loading
Loading
+29 −8
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  setuptools,
  flask,
  visitor,
  dominate,
  pytestCheckHook,
  requests,
}:

buildPythonPackage rec {
  pname = "flask-bootstrap";
  version = "3.3.7.1";
  pyproject = true;

  src = fetchPypi {
    pname = "Flask-Bootstrap";
    inherit version;
    sha256 = "1j1s2bplaifsnmr8vfxa3czca4rz78xyhrg4chx39xl306afs26b";
  src = fetchFromGitHub {
    owner = "mbr";
    repo = "flask-bootstrap";
    tag = version;
    hash = "sha256-TsRSNhrI1jZU/beX3G7LM64IrFagD6AYiluoGzy12jE=";
  };

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    flask
    visitor
    dominate
  ];

  meta = with lib; {
  pythonImportsCheck = [ "flask_bootstrap" ];

  nativeCheckInputs = [
    pytestCheckHook
    requests
  ];

  disabledTests = [
    # requires network access
    "test_bootstrap_version_matches"
    # requires flask-appconfig
    "test_index"
  ];

  meta = {
    homepage = "https://github.com/mbr/flask-bootstrap";
    description = "Ready-to-use Twitter-bootstrap for use in Flask";
    license = licenses.asl20;
    license = lib.licenses.asl20;
    maintainers = [ ];
  };
}