02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
34 lines
725 B
Nix
34 lines
725 B
Nix
{ buildPythonPackage
|
|
, fetchFromGitHub
|
|
, lib
|
|
, pythonOlder
|
|
, pydal
|
|
, graphviz
|
|
, pandoc
|
|
, plantuml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytm";
|
|
version = "1.2.0";
|
|
format = "setuptools";
|
|
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 ];
|
|
};
|
|
}
|