biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pytest-flask / default.nix
blobcc0096db1fd75334f0482c25bef8c11c327a7188
2   lib,
3   stdenv,
4   buildPythonPackage,
5   fetchPypi,
6   flask,
7   pytest,
8   pytestCheckHook,
9   pythonOlder,
10   setuptools-scm,
11   werkzeug,
14 buildPythonPackage rec {
15   pname = "pytest-flask";
16   version = "1.3.0";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-WL4cl7Ibo8TUfgp2ketBAHdIUGw2v1EAT3jfEGkfqV4=";
24   };
26   nativeBuildInputs = [ setuptools-scm ];
28   buildInputs = [ pytest ];
30   propagatedBuildInputs = [
31     flask
32     werkzeug
33   ];
35   nativeCheckInputs = [ pytestCheckHook ];
37   pythonImportsCheck = [ "pytest_flask" ];
39   pytestFlagsArray = lib.optionals stdenv.hostPlatform.isDarwin [
40     "--ignore=tests/test_live_server.py"
41   ];
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   };