2018-01-10 20:26:14 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-flexx
|
|
|
|
#
|
2021-02-23 10:07:01 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-01-10 20:26:14 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 13:28:11 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-03-03 17:31:58 +00:00
|
|
|
#
|
2018-01-10 20:26:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-10-29 16:00:07 +00:00
|
|
|
%define skip_python2 1
|
2021-02-23 10:07:01 +00:00
|
|
|
%define skip_python36 1
|
2018-01-10 20:26:14 +00:00
|
|
|
Name: python-flexx
|
2021-10-16 09:29:30 +00:00
|
|
|
Version: 0.8.2
|
2018-01-10 20:26:14 +00:00
|
|
|
Release: 0
|
2018-03-03 17:31:58 +00:00
|
|
|
Summary: Python toolkit for creating graphical user interfaces
|
2018-01-10 20:26:14 +00:00
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Languages/Python
|
2019-03-29 10:42:53 +00:00
|
|
|
URL: https://github.com/flexxui/flexx
|
2018-10-29 16:00:07 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/f/flexx/flexx-%{version}.tar.gz
|
2018-01-10 20:26:14 +00:00
|
|
|
BuildRequires: %{python_module certifi}
|
2019-03-19 16:03:42 +00:00
|
|
|
BuildRequires: %{python_module dialite >= 0.5.2}
|
2018-01-10 20:26:14 +00:00
|
|
|
BuildRequires: %{python_module imageio}
|
|
|
|
BuildRequires: %{python_module numpy}
|
2021-10-16 09:29:30 +00:00
|
|
|
BuildRequires: %{python_module pscript >= 0.7.3}
|
2018-01-10 20:26:14 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-03-29 10:42:53 +00:00
|
|
|
BuildRequires: %{python_module selenium}
|
2019-03-19 16:03:42 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-01-10 20:26:14 +00:00
|
|
|
BuildRequires: %{python_module tornado >= 4}
|
2019-03-19 16:03:42 +00:00
|
|
|
BuildRequires: %{python_module webruntime >= 0.5.6}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: unzip
|
|
|
|
Requires: python-dialite >= 0.5.2
|
2021-10-16 09:29:30 +00:00
|
|
|
Requires: python-pscript >= 0.7.3
|
2018-12-04 13:28:11 +00:00
|
|
|
Requires: python-tornado
|
2019-03-19 16:03:42 +00:00
|
|
|
Requires: python-webruntime >= 0.5.6
|
2020-05-27 10:08:44 +00:00
|
|
|
Requires(post): update-alternatives
|
2021-10-16 09:29:30 +00:00
|
|
|
Requires(postun):update-alternatives
|
2018-01-10 20:26:14 +00:00
|
|
|
Recommends: python-imageio
|
|
|
|
Recommends: python-numpy
|
|
|
|
Recommends: python-vispy
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Flexx is a pure Python toolkit for creating graphical user interfaces
|
2018-03-03 17:31:58 +00:00
|
|
|
(GUIs), that uses web technology for its rendering. Apps are written
|
|
|
|
purely in Python; Flexx's transpiler generates the necessary JavaScript
|
2018-01-10 20:26:14 +00:00
|
|
|
on the fly.
|
|
|
|
|
2018-03-03 17:31:58 +00:00
|
|
|
Flexx can be used to create (cross platform) desktop applications, web
|
2018-01-10 20:26:14 +00:00
|
|
|
applications, and (if designed well) export an app to a standalone HTML
|
|
|
|
document. It also works in the Jupyter notebook.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n flexx-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2020-05-27 10:08:44 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/flexx
|
2018-01-10 20:26:14 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2019-03-29 10:42:53 +00:00
|
|
|
# Do not run tests, they require online access to jquery/etc.
|
|
|
|
#%%pytest
|
2018-01-10 20:26:14 +00:00
|
|
|
|
2020-05-27 10:08:44 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative flexx
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative flexx
|
|
|
|
|
2018-01-10 20:26:14 +00:00
|
|
|
%files %{python_files}
|
2019-03-19 16:03:42 +00:00
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2020-05-27 10:08:44 +00:00
|
|
|
%python_alternative %{_bindir}/flexx
|
2018-01-10 20:26:14 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|