File python-Js2Py.spec of Package failed_python-Js2Py

Name:           python-Js2Py
Version:        0.74
Release:        1%{?dist}
Summary:        Js2Py - JavaScript to Python translator and JavaScript interpreter written in 100% pure Python

License:        MIT
URL:            https://github.com/PiotrDabkowski/Js2Py
Source0:        Js2Py-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
Requires:       python3

%description
Js2Py is a translator and JavaScript interpreter written in pure Python.

%prep
%setup -q -n Js2Py-%{version}

%build
%py3_build

%install
%py3_install

%check
# Run test runner using explicit python invocation to ensure script executes
cd Js2Py-%{version}/tests || exit 0
touch node_failed.txt
PYTHONPATH="$(pwd)/.." python3 run.py

%files
%license LICENSE
%doc README.md
%{python3_sitelib}/*

%changelog
* Thu Aug 28 2025 Packager <packager@example.com> - 0.74-1
- Use explicit python3 to run tests in %check
openSUSE Build Service is sponsored by