2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, watchdog
|
|
|
|
, dataclasses
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-timeout
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytest-xprocess
|
|
|
|
, pytestCheckHook
|
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";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "2.0.1";
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "Werkzeug";
|
|
|
|
inherit version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "0hlwawnn8c41f254qify5jnjj8xb97n294h09bqimzqhs0qdpq8x";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = lib.optionals (!stdenv.isDarwin) [
|
|
|
|
# watchdog requires macos-sdk 10.13+
|
|
|
|
watchdog
|
|
|
|
] ++ lib.optionals (pythonOlder "3.7") [
|
|
|
|
dataclasses
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
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'"
|
|
|
|
];
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|