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