python3Packages.pytm: init at 1.2.0 (#142609)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Markus Wamser 2021-10-26 14:14:43 +02:00 committed by GitHub
parent 1e2ba5f959
commit 86ef6baf5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -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 { };