nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 59 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 click, 5 faker, 6 fetchFromGitHub, 7 flask, 8 gunicorn, 9 pyopenssl, 10 pytestCheckHook, 11 pythonAtLeast, 12 requests, 13 setuptools-scm, 14 standard-telnetlib, 15}: 16 17buildPythonPackage rec { 18 pname = "threat9-test-bed"; 19 version = "0.6.0"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "threat9"; 24 repo = "threat9-test-bed"; 25 rev = "v${version}"; 26 hash = "sha256-0YSjMf2gDdrvkDaT77iwfCkiDDXKHnZyI8d7JmBSuCg="; 27 }; 28 29 build-system = [ setuptools-scm ]; 30 31 dependencies = [ 32 click 33 faker 34 flask 35 gunicorn 36 pyopenssl 37 requests 38 ] 39 ++ lib.optionals (pythonAtLeast "3.13") [ standard-telnetlib ]; 40 41 nativeCheckInputs = [ pytestCheckHook ]; 42 43 pythonImportsCheck = [ "threat9_test_bed" ]; 44 45 disabledTests = [ 46 # Assertion issue with the response codes 47 "test_http_service_mock" 48 "tests_http_service_mock" 49 "test_http_service_mock_random_port" 50 ]; 51 52 meta = { 53 description = "Module for adding unittests.mock as view functions"; 54 homepage = "https://github.com/threat9/threat9-test-bed"; 55 license = lib.licenses.bsd3; 56 maintainers = with lib.maintainers; [ fab ]; 57 mainProgram = "test-bed"; 58 }; 59}