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 pytestFlagsArray = lib.optionals stdenv.isDarwin [ "--ignore=tests/test_live_server.py" ];
40
41 meta = with lib; {
42 description = "A set of pytest fixtures to test Flask applications";
43 homepage = "https://pytest-flask.readthedocs.io/";
44 changelog = "https://github.com/pytest-dev/pytest-flask/blob/${version}/docs/changelog.rst";
45 license = licenses.mit;
46 maintainers = with maintainers; [ vanschelven ];
47 };
48}