[packages/python3-nodeenv] Initial

arekm arekm at pld-linux.org
Mon Feb 10 17:56:05 CET 2025


commit 9587ced5087ea231e4415cc11873a0915debff22
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Feb 10 17:27:55 2025 +0100

    Initial

 python3-nodeenv.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
---
diff --git a/python3-nodeenv.spec b/python3-nodeenv.spec
new file mode 100644
index 0000000..5ecc30c
--- /dev/null
+++ b/python3-nodeenv.spec
@@ -0,0 +1,60 @@
+# Conditional build:
+%bcond_with	tests	# unit tests
+
+%define		module	nodeenv
+Summary:	Node.js virtual environment builder
+Name:		python3-%{module}
+Version:	1.9.1
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+Source0:	https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5:	48e8369f9770952639e51f41366f651d
+URL:		https://pypi.org/project/nodeenv/
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.2
+%if %{with tests}
+#BuildRequires:	python3-
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+# replace with other requires if defined in setup.py
+Requires:	python3-modules >= 1:3.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+nodeenv (node.js virtual environment) is a tool to create isolated
+node.js environments.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# if pyproject.toml
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CHANGES README*
+%attr(755,root,root) %{_bindir}/nodeenv
+%{py3_sitescriptdir}/%{module}.py
+%{py3_sitescriptdir}/__pycache__/*%{module}*
+%{py3_sitescriptdir}/%{module}-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-nodeenv.git/commitdiff/9587ced5087ea231e4415cc11873a0915debff22



More information about the pld-cvs-commit mailing list