aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-05-01 08:50:30 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-05-01 12:29:19 +0100
commit16297f12db919a9db1c767a2c374859b16077451 (patch)
tree55230f996db64693de93c4e6d52b8be5d4d98784
parentc94b5046988fd3c61163239b721247f2574501b8 (diff)
downloadguix-16297f12db919a9db1c767a2c374859b16077451.tar.gz
guix-16297f12db919a9db1c767a2c374859b16077451.zip
gnu: Add python-validate-pyproject.
* gnu/packages/python-check.scm (python-validate-pyproject): New variable. Change-Id: I40ab76b862f7bdd67babb6d17a8d50e9e208cbea
-rw-r--r--gnu/packages/python-check.scm45
1 files changed, 45 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 2b008a2bdb..b9f7e57fc4 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -3614,6 +3614,51 @@ supported environment, or act as a frontend to continuous integration
servers.")
(license license:expat)))
+(define-public python-validate-pyproject
+ (package
+ (name "python-validate-pyproject")
+ (version "0.24.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "validate_pyproject" version))
+ (sha256
+ (base32 "0wbbksrfaxc2c7y305wjinkk4y1jxdnc0vzfbf79ipaa6m8zr0p1"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; TODO: Full test suite requires schemas from
+ ;; <https://json.schemastore.org/pyproject.json> and obtained during CI
+ ;; just before running tests, figure out how to get schema files to
+ ;; cover all test cases, see <tools/cache_urls_for_tests.py> and
+ ;; <.github/workflows/ci.yml>.
+ #~(list "--ignore=tests/test_examples.py"
+ "--ignore=tests/test_pre_compile.py"
+ "-k" (string-join
+ (list "not test_downloaded"
+ "test_valid_download_only_once"
+ "test_cache_open_url")
+ " and not "))))
+ (native-inputs
+ (list python-pytest
+ python-packaging
+ python-pytest-cov
+ python-setuptools
+ python-setuptools-scm
+ python-trove-classifiers
+ python-wheel))
+ (propagated-inputs
+ (list python-fastjsonschema))
+ (home-page "https://github.com/abravalheri/validate-pyproject/")
+ (synopsis "Validation library for simple check on @code{pyproject.toml}")
+ (description
+ "Validation library and CLI tool for checking on @code{pyproject.toml}
+files using JSON Schema.")
+ (license (list license:mpl2.0
+ license:expat
+ license:bsd-3))))
+
(define-public python-vcrpy
(package
(name "python-vcrpy")