14 buildPythonPackage rec {
19 disabled = pythonOlder "3.9";
21 src = fetchFromGitHub {
22 owner = "CybOXProject";
23 repo = "python-cybox";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-Gn/gH7pvvOqLIGExgCNa5KswPazIZUZXdQe3LRAUVjw=";
29 # Import ABC from collections.abc for Python 3 compatibility, https://github.com/CybOXProject/python-cybox/pull/332
31 name = "collections-abc.patch";
32 url = "https://github.com/CybOXProject/python-cybox/commit/fd4631dac12943d89e9ea2e94105cbc3b81d52f9.patch";
33 hash = "sha256-dXEsJujtbU/SuUBge8abWgMPeYO1ZR3c5758Bd0dnwE=";
37 build-system = [ setuptools ];
45 nativeCheckInputs = [ pytestCheckHook ];
47 pythonImportsCheck = [ "cybox" ];
50 description = "Library for parsing, manipulating, and generating CybOX content";
51 homepage = "https://github.com/CybOXProject/python-cybox/";
52 changelog = "https://github.com/CybOXProject/python-cybox/blob/${src.rev}/CHANGES.txt";
53 license = lib.licenses.bsd3;
54 maintainers = with lib.maintainers; [ fab ];