blob: 07d410fa1b17d7bbeec785087ee2297bc2d699b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
lib,
stdenv,
blinker,
pytestCheckHook,
buildPythonPackage,
fetchPypi,
flask,
pythonOlder,
}:
buildPythonPackage rec {
pname = "flask-testing";
version = "0.8.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "Flask-Testing";
inherit version;
hash = "sha256-CnNNe2jmOpQQtBPNex+WRW+ahYvQmmIi1GVlDMeC6wE=";
};
propagatedBuildInputs = [ flask ];
nativeCheckInputs = [
blinker
pytestCheckHook
];
# Some of the tests use localhost networking on darwin
doCheck = !stdenv.hostPlatform.isDarwin;
disabledTests = [
# RuntimeError and NotImplementedError
"test_assert_redirects"
"test_server_listening"
"test_server_process_is_spawned"
# change in repr(template) in recent flask
"test_assert_template_rendered_signal_sent"
];
disabledTestPaths = [
# twill is only used by Python 2 according setup.py
"tests/test_twill.py"
];
pythonImportsCheck = [ "flask_testing" ];
meta = with lib; {
description = "Extension provides unit testing utilities for Flask";
homepage = "https://pythonhosted.org/Flask-Testing/";
license = licenses.bsd3;
maintainers = with maintainers; [ mic92 ];
};
}
|