me
/
guix
Archived
1
0
Fork 0

gnu: Remove python2-pep517.

* gnu/packages/python-xyz.scm (python2-pep517): Delete variable.
Maxim Cournoyer 2022-04-29 23:03:42 -04:00
parent 745be53c5f
commit 9702e5f26c
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 8 additions and 23 deletions

View File

@ -10807,30 +10807,15 @@ plugin for flake8 to check PEP-8 naming conventions.")
(inherit python-pep517-bootstrap) (inherit python-pep517-bootstrap)
(name "python-pep517") (name "python-pep517")
(arguments (arguments
'(#:phases '(#:phases (modify-phases %standard-phases
(modify-phases %standard-phases (replace 'check
(replace 'check (lambda* (#:key tests? #:allow-other-keys)
(lambda* (#:key tests? #:allow-other-keys) (delete-file "pytest.ini")
(delete-file "pytest.ini") (delete-file "tests/test_meta.py")
;; This test tries to connect to the internet (if tests?
(delete-file "tests/test_meta.py") (invoke "pytest") #t))))))
(if tests? (native-inputs (list python-mock python-pytest python-testpath))))
(invoke "pytest")
#t))))))
(native-inputs
(list python-mock python-pytest python-testpath))
(properties `((python2-variant . ,(delay python2-pep517))))))
;; 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-pep621 (define-public python-pep621
(package (package