2021-10-28 06:52:43 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, pythonOlder
|
|
|
|
, pydal
|
|
|
|
, graphviz
|
|
|
|
, pandoc
|
|
|
|
, plantuml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytm";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.3.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-10-28 06:52:43 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "izar";
|
|
|
|
repo = pname;
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-MseV1ucDCzSM36zx04g9v5euDX0t74KqUSB4+brHzt8=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|