Files
nixpkgs/pkgs/development/python-modules/flask-testing/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 lines
1.1 KiB
Nix

{
lib,
stdenv,
blinker,
pytestCheckHook,
buildPythonPackage,
fetchPypi,
flask,
pythonOlder,
}:
buildPythonPackage rec {
pname = "flask-testing";
version = "0.8.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "Flask-Testing";
inherit version;
hash = "sha256-CnNNe2jmOpQQtBPNex+WRW+ahYvQmmIi1GVlDMeC6wE=";
};
propagatedBuildInputs = [ flask ];
nativeCheckInputs = [
blinker
pytestCheckHook
];
__darwinAllowLocalNetworking = true;
disabledTests = [
# RuntimeError and NotImplementedError
"test_assert_redirects"
"test_server_listening"
"test_server_process_is_spawned"
# change in repr(template) in recent flask
"test_assert_template_rendered_signal_sent"
];
disabledTestPaths = [
# twill is only used by Python 2 according setup.py
"tests/test_twill.py"
];
pythonImportsCheck = [ "flask_testing" ];
meta = {
description = "Extension provides unit testing utilities for Flask";
homepage = "https://pythonhosted.org/Flask-Testing/";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ mic92 ];
};
}