diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2020-08-08 23:45:57 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-08-08 23:45:57 +0300 |
commit | 8e6344a5fb22e2614dcb0db8e24658e63c6121c7 (patch) | |
tree | 3471aa3c38260e2ebbc9a69ab79ec3908842d8f6 /gnu | |
parent | 2d80caa86c5450938ec859fcab593bff9e4ceef4 (diff) | |
download | guix-8e6344a5fb22e2614dcb0db8e24658e63c6121c7.tar.gz |
gnu: Add python-pep517.
* gnu/packages/python-xyz.scm (python-pep517): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python-xyz.scm | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5daf0cf657..f4ae9df829 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7757,6 +7757,55 @@ PEP 8.") (define-public python2-pep8 (package-with-python2 python-pep8)) +(define-public python-pep517 + (package + (name "python-pep517") + (version "0.8.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pep517" version)) + (sha256 + (base32 + "17m2bcabx3sr5wjalgzppfx5xahqrwm12zq58h68mm482b7rjqcf")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (delete-file "pytest.ini") + ;; This test tries to connect to the internet + (delete-file "tests/test_meta.py") + (if tests? + (invoke "pytest") + #t)))))) + (native-inputs + `(("python-mock" ,python-mock) + ("python-pytest" ,python-pytest) + ("python-testpath" ,python-testpath))) + (propagated-inputs + `(("python-toml" ,python-toml) + ("python-wheel" ,python-wheel))) + (home-page "https://github.com/pypa/pep517") + (synopsis "Wrappers to build Python packages using PEP 517 hooks") + (description + "Wrappers to build Python packages using PEP 517 hooks.") + (properties `((python2-variant . ,(delay python2-pep517)))) + (license license:expat))) + +;; Skip the tests so we don't create a cyclical dependency with pytest. +(define-public python2-pep517 + (let ((base (package-with-python2 + (strip-python2-variant python-pep517)))) + (package + (inherit base) + (name "python2-pep517") + (arguments + `(#:tests? #f + ,@(package-arguments base))) + (native-inputs `())))) + (define-public python-pyflakes (package (name "python-pyflakes") |