Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1:Update
python-jupyter_highlight_selected_word
python-jupyter_highlight_selected_word.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-jupyter_highlight_selected_word.spec of Package python-jupyter_highlight_selected_word
# # spec file for package python-jupyter_highlight_selected_word # # Copyright (c) 2018 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 http://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} # Test files missing %bcond_with test Name: python-jupyter_highlight_selected_word Version: 0.2.0 Release: 0 Summary: Jupyter notebook extension to highlight every instance of the current word License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/jcb91/jupyter_highlight_selected_word Source: https://files.pythonhosted.org/packages/source/j/jupyter_highlight_selected_word/jupyter_highlight_selected_word-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-jupyter_notebook %if %{with test} BuildRequires: %{python_module jupyter_notebook} BuildRequires: %{python_module nose} %endif Requires: python-jupyter_notebook >= 4.0 %ifpython3 Requires(post): python-jupyter_notebook Requires(preun): python-jupyter_notebook %endif %ifpython2 Requires: python3-jupyter_highlight_selected_word = %{version} %endif BuildArch: noarch %python_subpackages %description Jupyter notebook extension that enables highlighting of all instances of the currently-selected or cursor-adjecent word in either the current cell's editor, or in the whole notebook. %prep %setup -q -n jupyter_highlight_selected_word-%{version} %build %python_build %install %python_install %python_expand chmod a-x %{buildroot}%{$python_sitelib}/jupyter_highlight_selected_word-%{version}-py*.egg-info/PKG-INFO %python_expand %fdupes %{buildroot}%{$python_sitelib} PYTHONPATH=%{buildroot}%{python3_sitelib} jupyter nbextension install --nbextensions=%{buildroot}%{_datadir}/jupyter/nbextensions/ --py jupyter_highlight_selected_word %python_expand %fdupes %{buildroot}%{_datadir}/jupyter/nbextensions/ %post -n python3-jupyter_highlight_selected_word jupyter nbextension enable --system --py jupyter_highlight_selected_word || true %preun -n python3-jupyter_highlight_selected_word if [ $1 = 0 ] && [ -d %{python3_sitelib}/jupyter_highlight_selected_word/ ] ; then jupyter nbextension disable --system --py jupyter_highlight_selected_word || true fi %if %{with test} %check %python_expand nosetests-%{$python_bin_suffix} %endif %files %{python_files} %defattr(-,root,root,-) %doc README.md %license LICENSE.txt %{python_sitelib}/jupyter_highlight_selected_word %{python_sitelib}/jupyter_highlight_selected_word-%{version}-py*.egg-info %python3_only %{_datadir}/jupyter/nbextensions/highlight_selected_word/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor