[packages/python3-hjson] - new

baggins baggins at pld-linux.org
Sat Apr 4 01:00:40 CEST 2026


commit fee30a9e0bd934fd821e1cf8416883d3b4ade5c1
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Apr 4 02:00:26 2026 +0200

    - new

 python3-hjson.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
---
diff --git a/python3-hjson.spec b/python3-hjson.spec
new file mode 100644
index 0000000..73a58f2
--- /dev/null
+++ b/python3-hjson.spec
@@ -0,0 +1,56 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests
+
+%define		module	hjson
+Summary:	Hjson, a user interface for JSON
+Name:		python3-%{module}
+Version:	3.1.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+Source0:	https://files.pythonhosted.org/packages/source/h/hjson/%{module}-%{version}.tar.gz
+# Source0-md5:	6cf6947b3bdc0c58608a378ac05a451c
+URL:		https://pypi.org/project/hjson/
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Hjson, a user interface for JSON.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest hjson/tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/%{module}/tests
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%dir %{py3_sitescriptdir}/%{module}
+%attr(755,root,root) %{_bindir}/hjson
+%{py3_sitescriptdir}/%{module}/*.py
+%{py3_sitescriptdir}/%{module}/__pycache__
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-hjson.git/commitdiff/fee30a9e0bd934fd821e1cf8416883d3b4ade5c1



More information about the pld-cvs-commit mailing list