%global srcname libNeuroML %global pypi_name libneuroml Name: python-%{pypi_name} Version: 0.6.7 Release: 1%{?dist} Summary: Python library for working with NeuroML descriptions of neuronal models # The LICENSE file is the three-clause BSD text (it carries the non-endorsement # clause) and GitHub detects it as such; setup.cfg says BSD-2-Clause, which is # wrong. The file wins. License: BSD-3-Clause URL: https://github.com/NeuralEnsemble/libNeuroML # The GitHub tag, not the PyPI sdist: the sdist leaves out neuroml/examples, # which the cell, morphology and loader tests read their .nml files from. Source: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros # %%check BuildRequires: python3-pytest %global _description %{expand: libNeuroML is the reference Python API for NeuroML 2: classes for cells, morphologies, channels, networks and simulations generated from the NeuroML schema, readers and writers for XML and HDF5, schema validation, and helpers to build, inspect and convert morphologies (including an array-based morphology for speed). pyNeuroML, the NeuroML command-line tools, is built on it.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l neuroml %check # Upstream's suite, whole and offline: 116 passed, 5 xfailed (upstream marks # them expected failures), none deselected. %pytest -q neuroml/test %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md AUTHORS %changelog * Fri Oct 23 2026 Morgan Hough - 0.6.7-1 - Initial package: libNeuroML 0.6.7 (BSD-3-Clause, read from LICENSE). Net-new to Fedora; pure Python. Named python-libneuroml after the normalised PyPI name; the import package is neuroml. - neuroml/nml/nml.py is generateDS output from the bundled NeuroML_v2*.xsd schemas. It is shipped as generated; generateDS is not needed to use it. - Source is the GitHub tag because the PyPI sdist ships no examples/. - No runtime floors to relax: lxml, networkx, numpy, tables and natsort are all in Fedora 44 (tables 3.10.2 satisfies tables>3.10). - 116 passed, 5 xfailed, 0 failed, offline with loopback up.