mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
python312Packages.stix2: init at 3.0.1
This commit is contained in:
parent
50d025342c
commit
6c1a6cd67b
62
pkgs/development/python-modules/stix2/default.nix
Normal file
62
pkgs/development/python-modules/stix2/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user