depot/third_party/nixpkgs/pkgs/development/python-modules/bottle/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

54 lines
1.2 KiB
Nix

{
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";
mainProgram = "bottle.py";
downloadPage = "https://github.com/bottlepy/bottle";
license = licenses.mit;
maintainers = with maintainers; [ koral ];
};
}