567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
46 lines
920 B
Nix
46 lines
920 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
requests,
|
|
setuptools,
|
|
setuptools-scm,
|
|
ujson,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "enterpriseattack";
|
|
version = "1.0.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xakepnz";
|
|
repo = "enterpriseattack";
|
|
tag = "v${version}";
|
|
hash = "sha256-OZ/nao2oiXzzWl/zQA5A3GpsRNobnHb4ubAsZvVITj0=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
requests
|
|
ujson
|
|
];
|
|
|
|
# Tests require network access
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "enterpriseattack" ];
|
|
|
|
meta = {
|
|
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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|