bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
43 lines
776 B
Nix
43 lines
776 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
pythonOlder,
|
|
pydal,
|
|
graphviz,
|
|
pandoc,
|
|
plantuml,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytm";
|
|
version = "1.3.1";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "izar";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-MseV1ucDCzSM36zx04g9v5euDX0t74KqUSB4+brHzt8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pydal
|
|
graphviz
|
|
pandoc
|
|
plantuml
|
|
];
|
|
|
|
pythonImportsCheck = [ "pytm" ];
|
|
|
|
meta = with lib; {
|
|
description = "Pythonic framework for threat modeling";
|
|
homepage = "https://owasp.org/www-project-pytm/";
|
|
license = with licenses; [
|
|
capec
|
|
mit
|
|
];
|
|
maintainers = with maintainers; [ wamserma ];
|
|
};
|
|
}
|