Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
python-pynitrokey
python-pynitrokey.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-pynitrokey.spec of Package python-pynitrokey
# # spec file for package python-pynitrokey # # Copyright (c) 2024 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/ # %{?sle15_python_module_pythons} Name: python-pynitrokey Version: 0.6.0 Release: 0 Summary: Python Library for Nitrokey devices License: Apache-2.0 OR MIT URL: https://github.com/Nitrokey/pynitrokey Source: https://files.pythonhosted.org/packages/source/p/pynitrokey/pynitrokey-%{version}.tar.gz Source1: LICENSE-MIT Source2: LICENSE-APACHE BuildRequires: %{python_module certifi >= 14.5.14} BuildRequires: %{python_module cffi} BuildRequires: %{python_module click >= 8.1.6} BuildRequires: %{python_module click-aliases} BuildRequires: %{python_module cryptography >= 41.0.4 with %python-cryptography < 44} BuildRequires: %{python_module ecdsa} BuildRequires: %{python_module fido2 >= 1.1.0 with %python-fido2 < 2} BuildRequires: %{python_module flit} BuildRequires: %{python_module frozendict >= 2.3.4} BuildRequires: %{python_module nethsm >= 1.2.1 with %python-nethsm < 2} BuildRequires: %{python_module nitrokey} BuildRequires: %{python_module nkdfu} BuildRequires: %{python_module pip} BuildRequires: %{python_module protobuf >= 3.17.3} BuildRequires: %{python_module pyserial} BuildRequires: %{python_module python-dateutil >= 2.7.0} BuildRequires: %{python_module pyusb} BuildRequires: %{python_module requests} BuildRequires: %{python_module semver} BuildRequires: %{python_module spsdk >= 2.0 with %python-spsdk < 2.2} BuildRequires: %{python_module tlv8} BuildRequires: %{python_module tqdm} BuildRequires: %{python_module typing_extensions >= 4.3.0} BuildRequires: fdupes BuildRequires: intelhex BuildRequires: python-rpm-macros # SECTION test BuildRequires: %{python_module pytest} # /SECTION Requires: intelhex Requires: python-certifi >= 14.5.14 Requires: python-cffi Requires: python-click >= 8.1.6 Requires: python-click-aliases Requires: python-cryptography Requires: python-ecdsa Requires: python-frozendict >= 2.3.4 Requires: python-nitrokey Requires: python-nkdfu Requires: python-protobuf >= 3.17.3 Requires: python-pyserial Requires: python-python-dateutil >= 2.7.0 Requires: python-pyusb Requires: python-requests Requires: python-semver Requires: python-tlv8 Requires: python-tqdm Requires: python-typing_extensions >= 4.3.0 Requires: python-urllib3 >= 1.26.7 Requires: (python-fido2 >= 1.1.0 with python-fido2 < 2) Requires: (python-nethsm >= 1.2.1 with python-nethsm < 2) Requires: (python-spsdk >= 2.0 with python-spsdk < 2.2) Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch Provides: nitropy = %{version}-%{release} %python_subpackages %description # nitropy A command line interface for the Nitrokey FIDO2, Nitrokey Start, Nitrokey 3 and NetHSM. ## Quickstart ``` $ nitropy --help ``` ## Documentation The user documentation for the `nitropy` CLI is available on [docs.nitrokey.com](https://docs.nitrokey.com/software/nitropy/index.html). See also the product documentation for more information on the available commands: - [Nitrokey 3](https://docs.nitrokey.com/nitrokey3/index.html) - [Nitrokey FIDO2](https://docs.nitrokey.com/fido2/index.html) - [Nitrokey Start](https://docs.nitrokey.com/start/index.html) - [NetHSM](https://docs.nitrokey.com/nethsm/index.html) %prep %autosetup -p1 -n pynitrokey-%{version} cp %SOURCE1 . cp %SOURCE2 . %build %pyproject_wheel %install %pyproject_install %python_clone -a %{buildroot}%{_bindir}/nitropy # make scripts in start executable %python_expand find %{buildroot}%{$python_sitelib}/pynitrokey/start/ -type f -name "*.py" -exec sed -i '1 i\#!/usr/bin/python%{$python_version}' {} + %python_expand find %{buildroot}%{$python_sitelib}/pynitrokey/start/ -type f -name "*.py" -exec chmod 755 {} + # remove shebangs %python_expand find %{buildroot}%{$python_sitelib} -iname "*.py" -exec sed -i '1{/env python/d;}' {} + %python_expand %fdupes %{buildroot}%{$python_sitelib} %check echo "Disabled pytest" %post %python_install_alternative nitropy %postun %python_uninstall_alternative nitropy %files %{python_files} %doc README.md %license LICENSE-MIT LICENSE-APACHE %{python_sitelib}/pynitrokey/ %{python_sitelib}/pynitrokey-%{version}*-info %python_alternative %{_bindir}/nitropy %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