about summary refs log tree commit diff
path: root/pkgs/development/python-modules/maec/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/maec/default.nix')
-rw-r--r--pkgs/development/python-modules/maec/default.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/maec/default.nix b/pkgs/development/python-modules/maec/default.nix
new file mode 100644
index 000000000000..2c29be54289f
--- /dev/null
+++ b/pkgs/development/python-modules/maec/default.nix
@@ -0,0 +1,50 @@
+{
+  lib,
+  buildPythonPackage,
+  cybox,
+  distutils,
+  fetchFromGitHub,
+  lxml,
+  mixbox,
+  pytestCheckHook,
+  pythonOlder,
+  setuptools,
+}:
+
+buildPythonPackage rec {
+  pname = "maec";
+  version = "4.1.0.17";
+  pyproject = true;
+
+  disabled = pythonOlder "3.9";
+
+  src = fetchFromGitHub {
+    owner = "MAECProject";
+    repo = "python-maec";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-I2Ov2AQiC9D8ivHqn7owcTsNS7Kw+CWVyijK3VO52Og=";
+  };
+
+  build-system = [
+    distutils
+    setuptools
+  ];
+
+  dependencies = [
+    cybox
+    lxml
+    mixbox
+  ];
+
+  nativeCheckInputs = [ pytestCheckHook ];
+
+  pythonImportsCheck = [ "maec" ];
+
+  meta = {
+    description = "Library for parsing, manipulating, and generating MAEC content";
+    homepage = "https://github.com/MAECProject/python-maec/";
+    changelog = "https://github.com/MAECProject/python-maec/blob/${src.rev}/CHANGES.txt";
+    license = lib.licenses.bsd3;
+    maintainers = with lib.maintainers; [ fab ];
+  };
+}