2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonAtLeast,
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bottle";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.12.25";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-4anJSXCubXELP7RSYpTf64byy0qB7/OkuY3ED7Dl4CE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
cd test
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
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"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-07-14 12:49:19 +00:00
|
|
|
homepage = "https://bottlepy.org/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Fast and simple micro-framework for small web-applications";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bottle.py";
|
2024-01-13 08:15:51 +00:00
|
|
|
downloadPage = "https://github.com/bottlepy/bottle";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ koral ];
|
|
|
|
};
|
|
|
|
}
|