Merge pull request #298887 from fabaff/enterpriseattack

python311Packages.enterpriseattack: init at 0.1.8
This commit is contained in:
Fabian Affolter 2024-03-25 23:56:29 +01:00 committed by GitHub
commit 54cfbd1a97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
, setuptools
, ujson
}:
buildPythonPackage rec {
pname = "enterpriseattack";
version = "0.1.8";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "xakepnz";
repo = "enterpriseattack";
rev = "refs/tags/v.${version}";
hash = "sha256-cxbGc9iQe94Th6MSUldI17oVCclFhUM78h1w+6KXzm4=";
};
build-system = [
setuptools
];
dependencies = [
requests
ujson
];
# Tests require network access
doCheck = false;
pythonImportsCheck = [
"enterpriseattack"
];
meta = with lib; {
description = "Module to interact with the Mitre Att&ck Enterprise dataset";
homepage = "https://github.com/xakepnz/enterpriseattack";
changelog = "https://github.com/xakepnz/enterpriseattack/releases/tag/v.${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -3755,6 +3755,8 @@ self: super: with self; {
enrich = callPackage ../development/python-modules/enrich { };
enterpriseattack = callPackage ../development/python-modules/enterpriseattack { };
entrance = callPackage ../development/python-modules/entrance {
routerFeatures = false;
};