emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#59156: closed ([PATCH] gnu: python-mdurl: Enable tests)


From: GNU bug Tracking System
Subject: bug#59156: closed ([PATCH] gnu: python-mdurl: Enable tests)
Date: Tue, 15 Nov 2022 10:32:04 +0000

Your message dated Tue, 15 Nov 2022 12:31:31 +0200
with message-id <Y3Nqg9b+wqMebzuw@3900XT>
and subject line Re: [bug#59156] [PATCH] gnu: python-mdurl: Enable tests
has caused the debbugs.gnu.org bug report #59156,
regarding [PATCH] gnu: python-mdurl: Enable tests
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
59156: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59156
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: python-mdurl: Enable tests Date: Wed, 9 Nov 2022 19:59:51 +0000
* gnu/packages/python-xyz.scm (python-mdurl): Enable tests.
  [source]: Use git checkout with tests.
  [build-system]: Use pyproject-build-system.
  [native-inputs]: Add python-pytest.
---
 gnu/packages/python-xyz.scm | 33 +++++++++++----------------------
 1 file changed, 11 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b2fb101409..9c7874e576 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -783,28 +783,17 @@ (define-public python-mdurl
   (package
     (name "python-mdurl")
     (version "0.1.2")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "mdurl" version))
-              (sha256
-               (base32
-                "1fn1hy35h9grggwqax90zcb52inlfxrxsm27vlqqz8zfyllkshdv"))))
-    (build-system python-build-system)
-    (arguments
-     (list
-      #:tests? #f                       ;pypi source does not contain tests
-      #:phases
-      #~(modify-phases %standard-phases
-          (replace 'build
-            (lambda _ (invoke "flit" "build")))
-          (replace 'install
-            (lambda _
-              (for-each
-               (lambda (wheel)
-                 (invoke "python" "-m" "pip" "install"
-                         wheel (string-append "--prefix=" #$output)))
-               (find-files "dist" "\\.whl$")))))))
-    (native-inputs (list python-flit))
+    (source
+     (origin
+       (method git-fetch)   ; no tests data in PyPi package
+       (uri (git-reference
+             (url "https://github.com/executablebooks/mdurl";)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0csc777q42jzv4zgdzxmwp8xqlb92ws1jvj09m2smh4klw67q5f3"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-flit python-pytest))
     (home-page "https://github.com/executablebooks/mdurl";)
     (synopsis "Markdown URL utilities")
     (description
-- 
2.38.0




--- End Message ---
--- Begin Message --- Subject: Re: [bug#59156] [PATCH] gnu: python-mdurl: Enable tests Date: Tue, 15 Nov 2022 12:31:31 +0200
Thanks! Patch pushed.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]