Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
922 B
Nix
46 lines
922 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
requests,
|
|
setuptools,
|
|
setuptools-scm,
|
|
ujson,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "enterpriseattack";
|
|
version = "1.0.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xakepnz";
|
|
repo = "enterpriseattack";
|
|
tag = "v${version}";
|
|
hash = "sha256-9tEJVz6eO02/iwOHIjhcASfSd2t2W06JGzxSqepUYjk=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|