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