guix-commits
[Top][All Lists]
Advanced

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

35/57: gnu: python-django-sortedm2m: Update to 3.0.2.


From: guix-commits
Subject: 35/57: gnu: python-django-sortedm2m: Update to 3.0.2.
Date: Tue, 22 Sep 2020 12:43:39 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 52c8d4204c5a812319c7de24e49fb631b9a44287
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Sep 1 14:32:03 2020 +0200

    gnu: python-django-sortedm2m: Update to 3.0.2.
    
    * gnu/packages/django.scm (python-django-sortedm2m): Update to 3.0.2.
    [arguments]: Remove #:tests?.  Add #:phases.
    [home-page]: Update to current.
---
 gnu/packages/django.scm | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index e2b2336..02e0633 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -976,20 +976,25 @@ using Python multiprocessing.")
 (define-public python-django-sortedm2m
   (package
     (name "python-django-sortedm2m")
-    (version "1.3.3")
+    (version "3.0.2")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "django-sortedm2m" version))
               (sha256
                (base32
-                "0axf765i7b3c2s83nlph47asi8s071dhq8l7y382v1pw785s22vi"))))
+                "0z0yymmrr2l5cznqbzwziw624df0qsiflvbpqwrpan52nww3dk4a"))))
     (build-system python-build-system)
     (arguments
-     ;; no tests.
-     `(#:tests? #f))
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda _
+                      (setenv "PYTHONPATH" (string-append "./test_project:"
+                                                          "./build/lib:.:"
+                                                          (getenv 
"PYTHONPATH")))
+                      (invoke "django-admin.py" "test" 
"--settings=settings"))))))
     (propagated-inputs
      `(("python-django" ,python-django)))
-    (home-page "https://github.com/gregmuellegger/django-sortedm2m";)
+    (home-page "https://github.com/jazzband/django-sortedm2m";)
     (synopsis "Drop-in replacement for django's own ManyToManyField")
     (description
       "Sortedm2m is a drop-in replacement for django's own ManyToManyField.



reply via email to

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