Skip to content

Commit

Permalink
python313Packages.threat9-test-bed: add standard-telnetlib (#372353)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff authored Jan 9, 2025
2 parents 12509e2 + 31f1c99 commit c45bcd5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pkgs/development/python-modules/threat9-test-bed/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@
gunicorn,
pyopenssl,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
setuptools-scm,
requests,
setuptools-scm,
standard-telnetlib,
}:

buildPythonPackage rec {
pname = "threat9-test-bed";
version = "0.6.0";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.7";

Expand All @@ -27,16 +29,16 @@ buildPythonPackage rec {
hash = "sha256-0YSjMf2gDdrvkDaT77iwfCkiDDXKHnZyI8d7JmBSuCg=";
};

nativeBuildInputs = [ setuptools-scm ];
build-system = [ setuptools-scm ];

propagatedBuildInputs = [
dependencies = [
click
faker
flask
gunicorn
pyopenssl
requests
];
] ++ lib.optionals (pythonAtLeast "3.13") [ standard-telnetlib ];

nativeCheckInputs = [ pytestCheckHook ];

Expand All @@ -51,9 +53,9 @@ buildPythonPackage rec {

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 ];
mainProgram = "test-bed";
};
}

0 comments on commit c45bcd5

Please sign in to comment.