From 86ef6baf5d5f6869f163bc39d261c9c82fb164ed Mon Sep 17 00:00:00 2001 From: Markus Wamser Date: Tue, 26 Oct 2021 14:14:43 +0200 Subject: [PATCH] python3Packages.pytm: init at 1.2.0 (#142609) Co-authored-by: Sandro --- .../python-modules/pytm/default.nix | 34 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/pytm/default.nix diff --git a/pkgs/development/python-modules/pytm/default.nix b/pkgs/development/python-modules/pytm/default.nix new file mode 100644 index 000000000000..abae39aff062 --- /dev/null +++ b/pkgs/development/python-modules/pytm/default.nix @@ -0,0 +1,34 @@ +{ buildPythonPackage +, fetchPypi +, fetchFromGitHub +, lib +, pythonOlder +, pydal +, graphviz +, pandoc +, plantuml +}: + +buildPythonPackage rec { + pname = "pytm"; + version = "1.2.0"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "izar"; + repo = pname; + rev = "v${version}"; + sha256 = "1bx4s9a5kdyr2xvpw0smmh7zi9w38891yfqzdj1bmnsjl57x6qrg"; + }; + + propagatedBuildInputs = [ pydal graphviz pandoc plantuml ]; + + pythonImportsCheck = [ "pytm" ]; + + meta = with lib; { + description = "A Pythonic framework for threat modeling"; + homepage = "https://owasp.org/www-project-pytm/"; + license = with licenses; [ capec mit ]; + maintainers = with maintainers; [ wamserma ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8b25da7fad7f..5fbb9f5bd7e5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7624,6 +7624,8 @@ in { pytimeparse = callPackage ../development/python-modules/pytimeparse { }; + pytm = callPackage ../development/python-modules/pytm { }; + pytmx = callPackage ../development/python-modules/pytmx { }; pytoml = callPackage ../development/python-modules/pytoml { };