at 22.05-pre 60 lines 1.8 kB view raw
1{ lib, stdenv, buildPythonPackage, fetchPypi 2, itsdangerous, hypothesis 3, pytestCheckHook, requests 4, pytest-timeout 5 }: 6 7buildPythonPackage rec { 8 pname = "Werkzeug"; 9 version = "1.0.1"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c"; 14 }; 15 16 propagatedBuildInputs = [ itsdangerous ]; 17 checkInputs = [ pytestCheckHook requests hypothesis pytest-timeout ]; 18 19 postPatch = '' 20 # ResourceWarning causes tests to fail 21 rm tests/test_routing.py 22 ''; 23 24 disabledTests = [ 25 "test_save_to_pathlib_dst" 26 "test_cookie_maxsize" 27 "test_cookie_samesite_attribute" 28 "test_cookie_samesite_invalid" 29 "test_range_parsing" 30 "test_content_range_parsing" 31 "test_http_date_lt_1000" 32 "test_best_match_works" 33 "test_date_to_unix" 34 "test_easteregg" 35 36 # Seems to be a problematic test-case: 37 # 38 # > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) 39 # E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]> 40 # E 41 # E Traceback (most recent call last): 42 # E File "/nix/store/cwv8aj4vsqvimzljw5dxsxy663vjgibj-python3.9-Werkzeug-1.0.1/lib/python3.9/site-packages/werkzeug/formparser.py", line 318, in parse_multipart_headers 43 # E return Headers(result) 44 # E ResourceWarning: unclosed file <_io.FileIO name=11 mode='rb+' closefd=True> 45 "test_basic_routing" 46 "test_merge_slashes_match" 47 "test_merge_slashes_build" 48 "TestMultiPart" 49 "TestHTTPUtility" 50 ] ++ lib.optionals stdenv.isDarwin [ 51 "test_get_machine_id" 52 ]; 53 54 meta = with lib; { 55 homepage = "https://palletsprojects.com/p/werkzeug/"; 56 description = "A WSGI utility library for Python"; 57 license = licenses.bsd3; 58 maintainers = [ ]; 59 }; 60}