nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, blinker
4, pytestCheckHook
5, buildPythonPackage
6, fetchPypi
7, flask
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "flask-testing";
13 version = "0.8.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 pname = "Flask-Testing";
20 inherit version;
21 hash = "sha256-CnNNe2jmOpQQtBPNex+WRW+ahYvQmmIi1GVlDMeC6wE=";
22 };
23
24 propagatedBuildInputs = [
25 flask
26 ];
27
28 checkInputs = [
29 blinker
30 pytestCheckHook
31 ];
32
33 # Some of the tests use localhost networking on darwin
34 doCheck = !stdenv.isDarwin;
35
36 disabledTests = [
37 # RuntimeError and NotImplementedError
38 "test_assert_redirects"
39 "test_server_listening"
40 "test_server_process_is_spawned"
41 ];
42
43 disabledTestPaths = [
44 # twill is only used by Python 2 according setup.py
45 "tests/test_twill.py"
46 ];
47
48 pythonImportsCheck = [
49 "flask_testing"
50 ];
51
52 meta = with lib; {
53 description = "Extension provides unit testing utilities for Flask";
54 homepage = "https://pythonhosted.org/Flask-Testing/";
55 license = licenses.bsd3;
56 maintainers = with maintainers; [ mic92 ];
57 };
58}