about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/bottle/default.nix
blob: 9e8d84950e5e6d51cfe3f351beb0296ac1b17d07 (plain) (blame)
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
54
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, pytestCheckHook
, pythonAtLeast
}:

buildPythonPackage rec {
  pname = "bottle";
  version = "0.12.25";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-4anJSXCubXELP7RSYpTf64byy0qB7/OkuY3ED7Dl4CE=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  preCheck = ''
    cd test
  '';

  disabledTests = [
    "test_delete_cookie"
    "test_error"
    "test_error_in_generator_callback"
    # timing sensitive
    "test_ims"
  ] ++ lib.optionals (pythonAtLeast "3.12") [
    # https://github.com/bottlepy/bottle/issues/1422
    # ModuleNotFoundError: No module named 'bottle.ext'
    "test_data_import"
    "test_direkt_import"
    "test_from_import"
  ];

  __darwinAllowLocalNetworking = true;

  meta = with lib; {
    homepage = "https://bottlepy.org/";
    description = "A fast and simple micro-framework for small web-applications";
    downloadPage = "https://github.com/bottlepy/bottle";
    license = licenses.mit;
    maintainers = with maintainers; [ koral ];
  };
}