Files
nixpkgs/pkgs/development/python-modules/bottle/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
pythonAtLeast,
}:
buildPythonPackage rec {
pname = "bottle";
version = "0.13.4";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-eH54Mn4SsieTjeAiSDM9eIz+RZh+3Kc1+PiOA0csP0c=";
};
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 = "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 ];
};
}