- New
- Auto generate doc for PyMISPExpanded.
- Search_index in ExpandedPyMISP, cleanup, update jupyter.
- Add log search.
- Add test for pushing an event to ZMQ.
- Change_distribution method.
- Add test cases for sightings, cleanup.
- [example] Added sighting rest search example.
- [sighting] Added support of sighting REST API.
- Allow to pass csv to return_format in search.
- Page/limit in search.
- Changes
- Add test cases for default distribution levels.
- Include proposals in attributes search.
Add includeProposals param to the search method
- Update readme to document testing.
- Fixes & update Jupyter.
- [tuto] Update search.
- Add a script to load the API key from the file system (training VM)
- Add print in testlive to debug travis.
- Fix
- Auto generate doc for PyMISPExpanded.
- Properly handle errors on event creation/update.
- Test case.
- Do not run the zmq test on travis.
- Type of quick_filter.
- Quick_filter was broken.
- Properly initialize the config when jupyter runs on the VM.
- Readme update + python3 + pep8.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymisp?expand=0&rev=35
100 lines
2.8 KiB
RPMSpec
100 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package python-pymisp
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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-%{**}}
|
|
%{!?license: %global license %doc}
|
|
Name: python-pymisp
|
|
Version: 2.4.99
|
|
Release: 0
|
|
Summary: Python API for MISP
|
|
License: BSD-2-Clause
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/MISP/PyMISP
|
|
Source: https://files.pythonhosted.org/packages/source/p/pymisp/pymisp-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
# SECTION tests
|
|
BuildRequires: %{python_module jsonschema}
|
|
BuildRequires: %{python_module python-dateutil}
|
|
BuildRequires: %{python_module python-magic}
|
|
BuildRequires: %{python_module requests-mock}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: python2-enum34
|
|
# /SECTION
|
|
# SECTION docs
|
|
BuildRequires: python3-CommonMark
|
|
BuildRequires: python3-Sphinx
|
|
BuildRequires: python3-recommonmark
|
|
# /SECTION
|
|
Requires: python-jsonschema
|
|
Requires: python-python-dateutil
|
|
Requires: python-requests
|
|
%ifpython2
|
|
Requires: python2-enum34
|
|
%endif
|
|
Recommends: %{name}-doc
|
|
Recommends: python-magic
|
|
Suggests: python-pydeep
|
|
BuildArch: noarch
|
|
|
|
%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}
|
|
find pymisp examples -name "*.py" -type f -exec sed -i '1s/^#!.*//' '{}' \+
|
|
|
|
%build
|
|
%python_build
|
|
pushd docs
|
|
export LANG=en_US.UTF-8
|
|
make html
|
|
rm build/html/.buildinfo
|
|
popd
|
|
|
|
%install
|
|
%python_install
|
|
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
|
|
|
|
%check
|
|
# Requires internet access and a MISP-instance
|
|
rm tests/test.py
|
|
%python_exec setup.py test
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%files -n %{name}-doc
|
|
%doc examples docs/build/html
|
|
|
|
%changelog
|