88abffb7d2
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, watchdog
|
|
, dataclasses
|
|
, pytest-timeout
|
|
, pytest-xprocess
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "werkzeug";
|
|
version = "2.0.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "Werkzeug";
|
|
inherit version;
|
|
sha256 = "0hlwawnn8c41f254qify5jnjj8xb97n294h09bqimzqhs0qdpq8x";
|
|
};
|
|
|
|
propagatedBuildInputs = lib.optionals (!stdenv.isDarwin) [
|
|
# watchdog requires macos-sdk 10.13+
|
|
watchdog
|
|
] ++ lib.optionals (pythonOlder "3.7") [
|
|
dataclasses
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-timeout
|
|
pytest-xprocess
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
"test_get_machine_id"
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
# don't run tests that are marked with filterwarnings, they fail with
|
|
# warnings._OptionError: unknown warning category: 'pytest.PytestUnraisableExceptionWarning'
|
|
"-m 'not filterwarnings'"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://palletsprojects.com/p/werkzeug/";
|
|
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.
|
|
'';
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|