tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python2Packages.werkzeug: remove
Robert Schütz
3 years ago
162b4c10
b566290c
-62
2 changed files
expand all
collapse all
unified
split
pkgs
development
python2-modules
werkzeug
default.nix
top-level
python2-packages.nix
-60
pkgs/development/python2-modules/werkzeug/default.nix
···
1
1
-
{ lib, stdenv, buildPythonPackage, fetchPypi
2
2
-
, itsdangerous, hypothesis
3
3
-
, pytestCheckHook, requests
4
4
-
, pytest-timeout
5
5
-
}:
6
6
-
7
7
-
buildPythonPackage rec {
8
8
-
pname = "Werkzeug";
9
9
-
version = "1.0.1";
10
10
-
11
11
-
src = fetchPypi {
12
12
-
inherit pname version;
13
13
-
sha256 = "6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c";
14
14
-
};
15
15
-
16
16
-
propagatedBuildInputs = [ itsdangerous ];
17
17
-
checkInputs = [ pytestCheckHook requests hypothesis pytest-timeout ];
18
18
-
19
19
-
postPatch = ''
20
20
-
# ResourceWarning causes tests to fail
21
21
-
rm tests/test_routing.py
22
22
-
'';
23
23
-
24
24
-
disabledTests = [
25
25
-
"test_save_to_pathlib_dst"
26
26
-
"test_cookie_maxsize"
27
27
-
"test_cookie_samesite_attribute"
28
28
-
"test_cookie_samesite_invalid"
29
29
-
"test_range_parsing"
30
30
-
"test_content_range_parsing"
31
31
-
"test_http_date_lt_1000"
32
32
-
"test_best_match_works"
33
33
-
"test_date_to_unix"
34
34
-
"test_easteregg"
35
35
-
36
36
-
# Seems to be a problematic test-case:
37
37
-
#
38
38
-
# > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
39
39
-
# E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]>
40
40
-
# E
41
41
-
# E Traceback (most recent call last):
42
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
43
-
# E return Headers(result)
44
44
-
# E ResourceWarning: unclosed file <_io.FileIO name=11 mode='rb+' closefd=True>
45
45
-
"test_basic_routing"
46
46
-
"test_merge_slashes_match"
47
47
-
"test_merge_slashes_build"
48
48
-
"TestMultiPart"
49
49
-
"TestHTTPUtility"
50
50
-
] ++ lib.optionals stdenv.isDarwin [
51
51
-
"test_get_machine_id"
52
52
-
];
53
53
-
54
54
-
meta = with lib; {
55
55
-
homepage = "https://palletsprojects.com/p/werkzeug/";
56
56
-
description = "A WSGI utility library for Python";
57
57
-
license = licenses.bsd3;
58
58
-
maintainers = [ ];
59
59
-
};
60
60
-
}
-2
pkgs/top-level/python2-packages.nix
···
156
156
157
157
typing = callPackage ../development/python2-modules/typing { };
158
158
159
159
-
werkzeug = callPackage ../development/python2-modules/werkzeug { };
160
160
-
161
159
wsproto = callPackage ../development/python2-modules/wsproto { };
162
160
163
161
zeek = disabled super.zeek;