2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, watchdog
|
2022-04-27 09:35:20 +00:00
|
|
|
, ephemeral-port-reserve
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-timeout
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytest-xprocess
|
|
|
|
, pytestCheckHook
|
2022-09-14 18:05:37 +00:00
|
|
|
, markupsafe
|
2022-09-09 14:08:57 +00:00
|
|
|
# for passthru.tests
|
|
|
|
, moto, sentry-sdk
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "werkzeug";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "2.2.2";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "Werkzeug";
|
|
|
|
inherit version;
|
2022-09-14 18:05:37 +00:00
|
|
|
sha256 = "sha256-fqLUgyLMfA+LOiFe1z6r17XXXQtQ4xqwBihsz/ngC48=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-14 18:05:37 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
markupsafe
|
|
|
|
] ++ lib.optionals (!stdenv.isDarwin) [
|
2021-06-28 23:13:55 +00:00
|
|
|
# watchdog requires macos-sdk 10.13+
|
|
|
|
watchdog
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
ephemeral-port-reserve
|
2021-06-28 23:13:55 +00:00
|
|
|
pytest-timeout
|
|
|
|
pytest-xprocess
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
2020-08-20 17:08:02 +00:00
|
|
|
"test_get_machine_id"
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# ConnectionRefusedError: [Errno 111] Connection refused
|
|
|
|
"tests/test_serving.py"
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# don't run tests that are marked with filterwarnings, they fail with
|
|
|
|
# warnings._OptionError: unknown warning category: 'pytest.PytestUnraisableExceptionWarning'
|
|
|
|
"-m 'not filterwarnings'"
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit moto sentry-sdk;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://palletsprojects.com/p/werkzeug/";
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "The comprehensive WSGI web application library";
|
|
|
|
longDescription = ''
|
|
|
|
Werkzeug is a comprehensive WSGI web application library. It
|
|
|
|
began as a simple collection of various utilities for WSGI
|
|
|
|
applications and has become one of the most advanced WSGI
|
|
|
|
utility libraries.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2022-05-18 14:49:53 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|