depot/third_party/nixpkgs/pkgs/development/python-modules/bottle/default.nix

43 lines
770 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "bottle";
version = "0.12.25";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-4anJSXCubXELP7RSYpTf64byy0qB7/OkuY3ED7Dl4CE=";
};
nativeCheckInputs = [
pytestCheckHook
];
preCheck = ''
cd test
'';
disabledTests = [
"test_delete_cookie"
"test_error"
"test_error_in_generator_callback"
# timing sensitive
"test_ims"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
homepage = "https://bottlepy.org/";
description = "A fast and simple micro-framework for small web-applications";
license = licenses.mit;
maintainers = with maintainers; [ koral ];
};
}