gnu: python-django-sortedm2m: Update to 4.0.0.

* gnu/packages/django.scm (python-django-sortedm2m): Update to 4.0.0.
[source]: Fetch git repository.
[arguments]: Disable tests.
[propagated-inputs]: Add python-psycopg2.
[native-inputs]: Add python-setuptools and python-wheel.

Change-Id: I74d9242b4d2f372e108f30e25c76985cd5f661e9
This commit is contained in:
Ricardo Wurmus 2025-01-12 17:38:46 +01:00
parent 53dcdea0a0
commit 04dee06860
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1098,30 +1098,29 @@ using Python multiprocessing.")
(define-public python-django-sortedm2m (define-public python-django-sortedm2m
(package (package
(name "python-django-sortedm2m") (name "python-django-sortedm2m")
(version "3.0.2") (version "4.0.0")
(source (origin (source (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "django-sortedm2m" version)) (uri (git-reference
(url "https://github.com/jazzband/django-sortedm2m")
(commit version)))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0z0yymmrr2l5cznqbzwziw624df0qsiflvbpqwrpan52nww3dk4a")))) "13sm7axrmk60ai8jcd17x490yhg0svdmfj927vvfkq4lszmc5g96"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments ;; Tests are disable because they need a live instance of PostgreSQL.
`(#:phases (modify-phases %standard-phases (arguments (list #:tests? #false))
(replace 'check (propagated-inputs
(lambda _ (list python-django python-psycopg2))
(invoke "django-admin" (native-inputs (list python-setuptools python-wheel))
"test" "--settings=test_project.settings" (home-page "https://github.com/jazzband/django-sortedm2m")
"--pythonpath=.")))))) (synopsis "Drop-in replacement for django's own ManyToManyField")
(propagated-inputs (description
(list python-django)) "Sortedm2m is a drop-in replacement for django's own ManyToManyField.
(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.
The provided SortedManyToManyField behaves like the original one but remembers The provided SortedManyToManyField behaves like the original one but remembers
the order of added relations.") the order of added relations.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public python-django-appconf (define-public python-django-appconf
(package (package