Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{ 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 = "9.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "SmileyChris"; repo = "django-countries"; tag = "v${version}"; hash = "sha256-LR6mD3i/1e6c3DXqBgKqv2BhR0VbXzyskGHkPSXD3Gg="; };
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 ];
disabledTests = [ # timing sensitive "test_iter_caching" ];
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 ]; };}