1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchPypi, 6 flask, 7 pytest, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools-scm, 11 werkzeug, 12}: 13 14buildPythonPackage rec { 15 pname = "pytest-flask"; 16 version = "1.3.0"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-WL4cl7Ibo8TUfgp2ketBAHdIUGw2v1EAT3jfEGkfqV4="; 24 }; 25 26 nativeBuildInputs = [ setuptools-scm ]; 27 28 buildInputs = [ pytest ]; 29 30 propagatedBuildInputs = [ 31 flask 32 werkzeug 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ "pytest_flask" ]; 38 39 disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ 40 "tests/test_live_server.py" 41 ]; 42 43 meta = with lib; { 44 description = "Set of pytest fixtures to test Flask applications"; 45 homepage = "https://pytest-flask.readthedocs.io/"; 46 changelog = "https://github.com/pytest-dev/pytest-flask/blob/${version}/docs/changelog.rst"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ vanschelven ]; 49 }; 50}