diff --git a/anda/langs/python/jschon/anda.hcl b/anda/langs/python/jschon/anda.hcl new file mode 100644 index 0000000000..2969bebd6f --- /dev/null +++ b/anda/langs/python/jschon/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "jschon.spec" + } +} diff --git a/anda/langs/python/jschon/jschon.spec b/anda/langs/python/jschon/jschon.spec new file mode 100644 index 0000000000..86ea58b475 --- /dev/null +++ b/anda/langs/python/jschon/jschon.spec @@ -0,0 +1,58 @@ +%global pypi_name jschon +%global _desc An object-oriented JSON Schema implementation for Python. + +Name: python-%{pypi_name} +Version: 0.11.1 +Release: 1%?dist +Summary: An object-oriented JSON Schema implementation for Python +License: MIT +URL: https://github.com/marksparkza/jschon +Source0: %url/archive/refs/tags/v%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3 +BuildRequires: python3-devel +BuildRequires: python3-build +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme + +Requires: python3-requests +Requires: python3-rfc3986 + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: jschon +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n jschon-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files jschon + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst CONTRIBUTING.rst CHANGELOG.rst TESTING.rst +%license LICENSE +%ghost %python3_sitelib/__pycache__/*.cpython-*.pyc +%ghost %python3_sitelib/%{name}/subcommands/__pycache__/*.cpython-*.pyc +%python3_sitelib/jschon-%version.dist-info/* + +%changelog +* Sun Sep 28 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/jschon/update.rhai b/anda/langs/python/jschon/update.rhai new file mode 100644 index 0000000000..29f1d73fae --- /dev/null +++ b/anda/langs/python/jschon/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("marksparkza/jschon"));