14
0
Files
python-validators/python-validators.spec
Tomáš Chvátal f7ce26e602 - Update to 0.13.0:
* Fixed IPv4 formatted IP address returning True on ipv6 (#85, pull request courtesy johndlong)
  * Fixed IPv6 address parsing (#83, pull request courtesy JulianKahnert)
  * Fixed domain validator for international domains and certain edge cases (#76, pull request courtesy Ni-Knight)
  * Added allow_temporal_ssn parameter to fi_ssn validator (#97, pull request courtesy quantus)
  * Remove py33 support
  * Use inspect.getfullargspec() in py3 (#110, pull request courtesy riconnon)
  * Fixed py37 support (#113, pull request courtesy agiletechnologist)
  * Fixed domain validator for single character domains (#118, pull request courtesy kingbuzzman)
  * Added new validator: es_doi, es_nif, es_cif, es_nie (#121, pull request courtesy kingbuzzman)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-validators?expand=0&rev=13
2019-05-24 19:15:36 +00:00

64 lines
1.9 KiB
RPMSpec

#
# spec file for package python-validators
#
# 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-%{**}}
Name: python-validators
Version: 0.13.0
Release: 0
Summary: Python Data Validation
License: MIT
Group: Development/Languages/Python
URL: https://github.com/kvesteri/validators
Source: https://files.pythonhosted.org/packages/source/v/validators/validators-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-decorator >= 3.4.0
Requires: python-six >= 1.4.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module decorator >= 3.4.0}
BuildRequires: %{python_module isort >= 4.2.2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six >= 1.4.0}
# /SECTION
%python_subpackages
%description
Python Data Validation for Humans.
%prep
%setup -q -n validators-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc CHANGES.rst README.rst
%license LICENSE
%{python_sitelib}/*
%changelog