python312Packages.stix2: init at 3.0.1

This commit is contained in:
PapayaJackal 2024-10-29 15:03:08 +00:00
parent 50d025342c
commit 6c1a6cd67b
2 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,62 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
haversine,
medallion,
pytz,
rapidfuzz,
requests,
simplejson,
stix2-patterns,
taxii2-client,
}:
buildPythonPackage rec {
pname = "stix2";
version = "3.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "oasis-open";
repo = "cti-python-stix2";
rev = "refs/tags/v${version}";
hash = "sha256-1bILZUZgPOWmFWRu4p/fmgi4QPEE1lFQH9mxoWd/saI=";
};
build-system = [ setuptools ];
dependencies = [
pytz
requests
simplejson
stix2-patterns
];
nativeCheckInputs = [
pytestCheckHook
haversine
medallion
rapidfuzz
taxii2-client
];
disabledTests = [
# flaky tests
"test_graph_equivalence_with_filesystem_source"
"test_graph_similarity_with_filesystem_source"
"test_object_similarity_prop_scores"
];
pythonImportsCheck = [ "stix2" ];
meta = with lib; {
description = "Produce and consume STIX 2 JSON content";
homepage = "https://stix2.readthedocs.io/en/latest/";
changelog = "https://github.com/oasis-open/cti-python-stix2/blob/v${version}/CHANGELOG";
license = licenses.bsd3;
maintainers = with maintainers; [ PapayaJackal ];
};
}

View File

@ -15109,6 +15109,8 @@ self: super: with self; {
stim = callPackage ../development/python-modules/stim { };
stix2 = callPackage ../development/python-modules/stix2 { };
stix2-patterns = callPackage ../development/python-modules/stix2-patterns { };
stix2-validator = callPackage ../development/python-modules/stix2-validator { };