blob: cb4f47e6496e327f01189ce9d04ecdd459d6906c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{ lib
, buildPythonPackage
, click
, faker
, fetchFromGitHub
, flask
, gunicorn
, pyopenssl
, pytestCheckHook
, pythonOlder
, setuptools-scm
, requests
}:
buildPythonPackage rec {
pname = "threat9-test-bed";
version = "0.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "threat9";
repo = pname;
rev = "v${version}";
hash = "sha256-0YSjMf2gDdrvkDaT77iwfCkiDDXKHnZyI8d7JmBSuCg=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
click
faker
flask
gunicorn
pyopenssl
requests
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"threat9_test_bed"
];
disabledTests = [
# Assertion issue with the response codes
"test_http_service_mock"
"tests_http_service_mock"
"test_http_service_mock_random_port"
];
meta = with lib; {
description = "Module for adding unittests.mock as view functions";
mainProgram = "test-bed";
homepage = "https://github.com/threat9/threat9-test-bed";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}
|