- Changes
- Bump version. [Raphaël Vinot]
- Bump deps, object templates. [Raphaël Vinot]
- Bump objects templates. [Raphaël Vinot]
- Bump misp-objects. [Raphaël Vinot]
- Lief doesn't supports python 3.10. [Raphaël Vinot]
- Debug poetry install, freezes on the GHA. [Raphaël Vinot]
- Bump deps, use pytest. [Raphaël Vinot]
- [feed-generator] support for distribution and sharing groups.
[Christophe Vandeplas]
- Fix
- Update live tests to support proper format of SGs. [Raphaël Vinot]
- [sharinggroups] Fixes wrong model for SharingGroupOrg. [Christophe
Vandeplas]
- [feed-generator] code style fixes. [Christophe Vandeplas]
- [feed-generator] keeping function compatibility. [Christophe
Vandeplas]
- [feed-generator] fix missing except type. [Christophe Vandeplas]
- update to version 2.4.151:
- New
- Add Blind Carbon Copy (bcc) headers. [Sami Tainio]
- Changes
- Bump changelog. [Raphaël Vinot]
- Bump version. [Raphaël Vinot]
- Bump misp-objects. [Raphaël Vinot]
- [feed-generator] Make the feature to exlude attribute type more
generic. [Sami Mokaddem]
- [feed-generator] Added exclude malware samples option. [Sami Mokaddem]
- Bump deps, chardet is required by pyfaup. [Raphaël Vinot]
- Removed a whitespace. [Sami Tainio]
- Keep strict and generate attributes when needed. [Raphaël Vinot]
- Slight changes regarding timezones. [Raphaël Vinot]
- Bump deps. [Raphaël Vinot]
- Unified constructors. [Thomas Dupuy]
- Slight changes regarding timezones. [Raphaël Vinot]
- Bump deps. [Raphaël Vinot]
- [types] remove the duplicate. [Alexandre Dulaunoy]
- [describeTypes] remove duplicate filename-pattern. [Alexandre
Dulaunoy]
- [misp-objects] updated. [Alexandre Dulaunoy]
- [misp-objects] updated to the latest version. [Alexandre Dulaunoy]
- Bump many dependencies. [Raphaël Vinot]
- Add in test case for get_sharing_group and validate orgs are present.
[Tom King]
- Improve sharing groups, bring back organsations included and ability
to get specific SG. [Tom King]
- Add in test case for searching against orgs and users. [Tom King]
- Add ability to search against orgs and users by freetext search (both)
or organisation (users) [Tom King]
- [test] Check if all category types exists. [Jakub Onderka]
- Bump changelog. [Raphaël Vinot]
- [py] Typo. [Steve Clement]
- [describeTypes] updated to include ssh-fingerprint. [Alexandre
Dulaunoy]
- Fix
- [feed-generator] Revert back the event initial search to use the index
endpoint instead of RestSearch. [Sami Mokaddem]
Relying on RestSearch was offering more flexibility than index in terms of filtering options,
however, it might introduce a significant overhead potentially leading to timeout.
- PyMISP.get_user_setting method. [Jakub Onderka]
- [tests] Remove debug prints. [Jakub Onderka]
- Fix final nosetest. [Tom King]
- Fix nosetests. [Tom King]
- [types] Update types to use `filename-pattern` type. [Jakub Onderka]
- [test] Remove debug print. [Jakub Onderka]
- [test] Correct error messages for blocked event. [Jakub Onderka]
- Missing import in __init__ [Raphaël Vinot]
Fix #796
- [tests] Fixed stix test. [chrisr3d]
- [py] Typo. [Steve Clement]
- Other
- Update README.md. [Raphaël Vinot]
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymisp?expand=0&rev=92
116 lines
3.8 KiB
RPMSpec
116 lines
3.8 KiB
RPMSpec
#
|
|
# spec file for package python-pymisp
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
%define misp_objects_revision 3d52773e9d3ba39ff324455bf8c10b47e11b695a
|
|
Name: python-pymisp
|
|
Version: 2.4.152
|
|
Release: 0
|
|
Summary: Python API for MISP
|
|
License: BSD-2-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/MISP/PyMISP
|
|
Source0: https://github.com/MISP/PyMISP/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
# github tarball misses the misp-objects subproject data
|
|
Source1: https://github.com/MISP/misp-objects/archive/%{misp_objects_revision}.tar.gz#/misp-objects.tar.gz
|
|
# pypi tarball missing some files: https://github.com/MISP/PyMISP/issues/554
|
|
#Source: https://files.pythonhosted.org/packages/source/p/pymisp/pymisp-%%{version}.tar.gz
|
|
# packaging tool
|
|
Source2: update-misp-objects.sh
|
|
Source3: python-pymisp-doc-rpmlintrc
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-jsonschema
|
|
Requires: python-oletools
|
|
Requires: python-python-dateutil
|
|
Requires: python-requests
|
|
Recommends: %{name}-doc
|
|
Recommends: python-extract-msg >= 0.28.0
|
|
Recommends: python-magic
|
|
Recommends: python-reportlab
|
|
Suggests: python-pydeep
|
|
BuildArch: noarch
|
|
# SECTION tests
|
|
BuildRequires: %{python_module Deprecated}
|
|
BuildRequires: %{python_module jsonschema}
|
|
BuildRequires: %{python_module oletools}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module python-dateutil}
|
|
BuildRequires: %{python_module python-magic}
|
|
BuildRequires: %{python_module reportlab}
|
|
BuildRequires: %{python_module requests-mock}
|
|
BuildRequires: %{python_module requests}
|
|
# /SECTION
|
|
# SECTION docs
|
|
BuildRequires: python3-CommonMark
|
|
BuildRequires: python3-Sphinx
|
|
BuildRequires: python3-recommonmark
|
|
BuildRequires: python3-sphinx-autodoc-typehints
|
|
# /SECTION
|
|
Requires: python-Deprecated
|
|
%python_subpackages
|
|
|
|
%package -n %{name}-doc
|
|
Summary: Examples and Documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description
|
|
PyMISP is a Python library to access MISP platforms via their REST API.
|
|
|
|
PyMISP allows you to fetch events, add or update events/attributes, add or update samples or search for attributes.
|
|
|
|
%description -n %{name}-doc
|
|
Examples and HTML documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n PyMISP-%{version}
|
|
%setup -T -D -b 1 -n PyMISP-%{version}
|
|
mv ../misp-objects-*/* pymisp/data/misp-objects/
|
|
find pymisp examples -name "*.py" -type f -exec sed -i '1s/^#!.*//' '{}' \+
|
|
find examples -name "*.py" -type f -exec chmod -x '{}' \+
|
|
|
|
%build
|
|
%python_build
|
|
pushd docs
|
|
export LANG=en_US.UTF-8
|
|
make %{?_smp_mflags} html
|
|
rm build/html/.buildinfo
|
|
popd
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export LANG=en_US.UTF-8
|
|
# requires optional dependencies which we don't have (extract_msg, RTFDE etc.)
|
|
rm tests/test_emailobject.py
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%files -n %{name}-doc
|
|
%doc examples docs/build/html
|
|
|
|
%changelog
|