17
0
Files
python-passivetotal/python-passivetotal.spec

92 lines
3.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-passivetotal
#
# Copyright (c) 2023 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/
#
%bcond_without test
Name: python-passivetotal
- update to version 2.5.9: - Enhancements: - Significant improvements to the Attack Surface Intelligence (ASI) documentation. Added - class references for ASI, CTI and vulnerability intelligence to ensure the docs and links - generated properly. Introduced a new Sphinx module to help generate inline table-of-contents - for complex classes. Corrected typos in docstrings and ensured consistent type references - when methods returned RecordList-type objects. - Implemented new config files for readthedocs to align with current documentation practices. - New `whois_history` property of `Hostname` and `IPAddress` entities gives direct access - to historical Whois (ownership) records. Includes more consistent implementation of - RecordList functionality and better pandas dataframe support for both historical Whois and - field-level Whois searches. - New `impacted_attack_surfaces` property of vulnerability articles (`VulnArticle`) filters - the list of third-party vendors to only those with at least one observation. The Illuminate - API returns all attack surfaces associated with an API key regardless of whether they are - impacted; the complete list is still available in the `attack_surfaces` property. Also updated - the `info` view of the Pandas dataframe on a vulnerability article so the `impacts` column - shows the count of impacted attack surfaces. - Bug Fixes: - Correctly sum insight and observation counts when accessing Attack Surface Insights (ASIs) across multiple severity levels. Previously the `active_insight_count`, `total_insight_count`, and `total_observations` properties of the `all_active_insights` - record list were only counting high-priority insights. - Fixed issue that caused an exception when trying to generate a dictionary view of an - AttackSurfaceComponent (detection). - Removed reference to non-existant field in `VulnArticle` that was causing an exception when - rendering a vulnerability article as a dictionary with the `as_dict` property. - Handle vuln articles with no impacted assets without raising an exception. - update to version 2.5.8: - Enhancements: - `certificates` property of `analyzer.Hostname` objects now returns same list of SSL - certificates as the UI, enabled by a CertificateField search with the field set to `name`. This activates special-case functionality in the API that performs a - substring search for a hostname across both subjectAlternativeNames and subjectCommonName fields - The previous version only looked at the `subjectAlternativeNames` field. A more narrow - search across specific fields is still available by instantiating an `analyzer.CertificateField` object directly. - Docs now show current version number and link to this changelog hosted on GitHub. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-passivetotal?expand=0&rev=26
2022-03-14 21:39:41 +00:00
Version: 2.5.9
Release: 0
Summary: Client for the PassiveTotal REST API
License: GPL-2.0-only
URL: https://passivetotal.readthedocs.org
Source: https://files.pythonhosted.org/packages/source/p/passivetotal/passivetotal-%{version}.tar.gz
Source1: https://github.com/passivetotal/python_api/raw/c2d0c8f4ea3dde4caec01f5401fb6f105f8a2447/LICENSE
Patch0: remove-future-requirement.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-python-dateutil
Requires: python-requests
Requires: python-tldextract
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module requests}
%endif
%python_subpackages
%description
Passivetotal provides a Python client library implementation into RiskIQ API
services. The library currently provides support for the following services:
- Passive DNS queries and filters
- WHOIS queries (search and details)
- SSL Certificates (search and details)
- Account configuration
- Site actions (tagging, classifying, etc.)
%prep
%autosetup -p1 -n passivetotal-%{version}
sed -i '1s/^#!.*//' passivetotal/*.py passivetotal/*/*.py
cp %{SOURCE1} .
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests
%python_clone -a %{buildroot}%{_bindir}/pt-client
%python_clone -a %{buildroot}%{_bindir}/pt-config
%python_clone -a %{buildroot}%{_bindir}/pt-info
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative pt-client
%python_install_alternative pt-config
%python_install_alternative pt-info
%postun
%python_uninstall_alternative pt-client
%python_uninstall_alternative pt-config
%python_uninstall_alternative pt-info
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/pt-info
%python_alternative %{_bindir}/pt-config
%python_alternative %{_bindir}/pt-client
%{python_sitelib}/passivetotal-{%version}.dist-info
%{python_sitelib}/passivetotal/
%changelog