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