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