diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-29 08:54:45 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-30 14:35:41 +0100 |
| commit | b2efdbfdd9516cb775723684b534a0269b0d69d6 (patch) | |
| tree | e2aff00553f507ccc91f63e23125f35cfd6a80cd | |
| parent | dcb6d77a075855d1ccfe699757e13ad174e54cf6 (diff) | |
gnu: python-django-netfields: Switch to pyproject.
* gnu/packages/django.scm (python-django-netfields):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-flags, #:phases>: Configure tests.
[native-inputs]: Add python-pytest, python-pytest-django,
python-setuptools.
Change-Id: I4f984a8511ff6d2447b630eeabc060cc81528f6e
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/django.scm | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index bffbabcb2ea..709e8838a62 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -1902,14 +1902,30 @@ to ElasticSearch.") (package (name "python-django-netfields") (version "1.3.2") - (source (origin - (method url-fetch) - (uri (pypi-uri "django-netfields" version)) - (sha256 - (base32 - "0q2s6b689hwql4qcw02m3zj2fwsx1w4ffhw81yvp71dq3dh46jg5")))) - (build-system python-build-system) - (arguments '(#:tests? #f)) ;XXX: Requires a running PostgreSQL server + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jimfunk/django-postgresql-netfields") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "176dmdlhd6bka4k6b4mlha3ags6mqf2qy3rxvpgnk9v5nncqm7l9")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f ;XXX: Requires a running PostgreSQL server + ;; XXX: Requires rest_framework. + #:test-flags + #~(list "--ignore=test/tests/test_rest_framework_fields.py") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + (setenv "DJANGO_SETTINGS_MODULE" "testsettings") + (setenv "PYTHONPATH" ".")))))) + (native-inputs + (list python-pytest python-pytest-django python-setuptools)) (propagated-inputs (list python-django python-netaddr python-psycopg2 python-six)) (home-page "https://github.com/jimfunk/django-postgresql-netfields") |
