Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 64 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ lib, buildPythonPackage, fetchFromGitHub,
# build-system uv-build,
# dependencies asgiref, typing-extensions,
# tests django, djangorestframework, graphene-django, pytestCheckHook, pytest-django,}:
buildPythonPackage rec { pname = "django-countries"; version = "8.2.0"; pyproject = true;
src = fetchFromGitHub { owner = "SmileyChris"; repo = "django-countries"; tag = "v${version}"; hash = "sha256-MtRlZFrTlY7t0n08X0aYN5HRGZUGLHkcU1gaZCtj07Q="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "uv_build>=0.9.6,<0.10.0" uv_build '';
build-system = [ uv-build ];
dependencies = [ asgiref typing-extensions ];
nativeCheckInputs = [ django djangorestframework graphene-django pytestCheckHook pytest-django ];
meta = { description = "Provides a country field for Django models"; longDescription = '' A Django application that provides country choices for use with forms, flag icons static files, and a country field for models. ''; homepage = "https://github.com/SmileyChris/django-countries"; changelog = "https://github.com/SmileyChris/django-countries/blob/v${version}/CHANGES.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hexa ]; };}