about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytm/default.nix
blob: dd22bbf5b88ea6b65ffe544d56411d3e950b1011 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  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 ];
  };
}