1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 requests,
7 setuptools,
8 ujson,
9}:
10
11buildPythonPackage rec {
12 pname = "enterpriseattack";
13 version = "0.1.8";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "xakepnz";
20 repo = "enterpriseattack";
21 rev = "refs/tags/v.${version}";
22 hash = "sha256-cxbGc9iQe94Th6MSUldI17oVCclFhUM78h1w+6KXzm4=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 requests
29 ujson
30 ];
31
32 # Tests require network access
33 doCheck = false;
34
35 pythonImportsCheck = [ "enterpriseattack" ];
36
37 meta = with lib; {
38 description = "Module to interact with the Mitre Att&ck Enterprise dataset";
39 homepage = "https://github.com/xakepnz/enterpriseattack";
40 changelog = "https://github.com/xakepnz/enterpriseattack/releases/tag/v.${version}";
41 license = licenses.mit;
42 maintainers = with maintainers; [ fab ];
43 };
44}