summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/flask-bootstrap/default.nix
blob: 2c7cd8dcb51b8d69767ccac262fc925d4825077f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  flask,
  visitor,
  dominate,
  pytestCheckHook,
  requests,
}:

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

  src = fetchFromGitHub {
    owner = "mbr";
    repo = "flask-bootstrap";
    tag = version;
    hash = "sha256-TsRSNhrI1jZU/beX3G7LM64IrFagD6AYiluoGzy12jE=";
  };

  build-system = [ setuptools ];

  dependencies = [
    flask
    visitor
    dominate
  ];

  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 = lib.licenses.asl20;
    maintainers = [ ];
  };
}