python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / bottle / default.nix
blobd1d69f252daaf40911c2ef68274768ef046a39eb
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools,
6   pytestCheckHook,
7   pythonAtLeast,
8 }:
10 buildPythonPackage rec {
11   pname = "bottle";
12   version = "0.13.1";
13   pyproject = true;
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-pIhS3HoFE1PT5N491VkM0l3jcLz9lKciN1YeMUzrDIg=";
18   };
20   nativeBuildInputs = [ setuptools ];
22   nativeCheckInputs = [ pytestCheckHook ];
24   preCheck = ''
25     cd test
26   '';
28   disabledTests =
29     [
30       "test_delete_cookie"
31       "test_error"
32       "test_error_in_generator_callback"
33       # timing sensitive
34       "test_ims"
35     ]
36     ++ lib.optionals (pythonAtLeast "3.12") [
37       # https://github.com/bottlepy/bottle/issues/1422
38       # ModuleNotFoundError: No module named 'bottle.ext'
39       "test_data_import"
40       "test_direkt_import"
41       "test_from_import"
42     ];
44   __darwinAllowLocalNetworking = true;
46   meta = with lib; {
47     homepage = "https://bottlepy.org/";
48     description = "Fast and simple micro-framework for small web-applications";
49     mainProgram = "bottle.py";
50     downloadPage = "https://github.com/bottlepy/bottle";
51     license = licenses.mit;
52     maintainers = with maintainers; [ koral ];
53   };