at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pytestCheckHook, 7 pythonAtLeast, 8}: 9 10buildPythonPackage rec { 11 pname = "bottle"; 12 version = "0.13.4"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-eH54Mn4SsieTjeAiSDM9eIz+RZh+3Kc1+PiOA0csP0c="; 18 }; 19 20 nativeBuildInputs = [ setuptools ]; 21 22 nativeCheckInputs = [ pytestCheckHook ]; 23 24 preCheck = '' 25 cd test 26 ''; 27 28 disabledTests = [ 29 "test_delete_cookie" 30 "test_error" 31 "test_error_in_generator_callback" 32 # timing sensitive 33 "test_ims" 34 ] 35 ++ lib.optionals (pythonAtLeast "3.12") [ 36 # https://github.com/bottlepy/bottle/issues/1422 37 # ModuleNotFoundError: No module named 'bottle.ext' 38 "test_data_import" 39 "test_direkt_import" 40 "test_from_import" 41 ]; 42 43 __darwinAllowLocalNetworking = true; 44 45 meta = with lib; { 46 homepage = "https://bottlepy.org/"; 47 description = "Fast and simple micro-framework for small web-applications"; 48 mainProgram = "bottle.py"; 49 downloadPage = "https://github.com/bottlepy/bottle"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ koral ]; 52 }; 53}