Archived
1
0
Fork 0

gnu: python-pylibacl: Do not return #t from custom phases.

* gnu/packages/acl.scm (python-pylibacl)[arguments]: Don't explicitly
return #t from phases.
This commit is contained in:
Tobias Geerinckx-Rice 2021-10-15 16:28:42 +02:00
parent a24c0f5b94
commit a9b8443cc5
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -114,18 +114,17 @@
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'disable-tests (add-after 'unpack 'disable-tests
(lambda* (#:key outputs inputs #:allow-other-keys) (lambda* (#:key outputs inputs #:allow-other-keys)
;; These tests operate on real files, but our tempfs does not support ;; These tests operate on real files, but our tmpfs does not support
;; ACLs ;; ACLs.
(substitute* "tests/test_acls.py" (substitute* "tests/test_acls.py"
(("( *)def test_applyto(_extended(_mixed)?)?" match indent) (("( *)def test_applyto(_extended(_mixed)?)?" match indent)
(string-append indent "@pytest.mark.skip(reason=\"guix\")\n" match))) (string-append indent "@pytest.mark.skip(reason=\"guix\")\n"
#t)) match)))))
(replace 'check (replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys) (lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests? (when tests?
(add-installed-pythonpath inputs outputs) (add-installed-pythonpath inputs outputs)
(invoke "pytest" "tests")) (invoke "pytest" "tests")))))))
#t)))))
(inputs `(("acl" ,acl))) (inputs `(("acl" ,acl)))
(native-inputs `(("python-pytest" ,python-pytest))) (native-inputs `(("python-pytest" ,python-pytest)))
(home-page "https://pylibacl.k1024.org/") (home-page "https://pylibacl.k1024.org/")