1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4 5# build 6, setuptools 7 8# propagates 9, asgiref 10, typing-extensions 11 12# tests 13, django 14, djangorestframework 15, graphene-django 16, pytestCheckHook 17, pytest-django 18}: 19 20buildPythonPackage rec { 21 pname = "django-countries"; 22 version = "7.5.1"; 23 format = "pyproject"; 24 25 src = fetchFromGitHub { 26 owner = "SmileyChris"; 27 repo = "django-countries"; 28 rev = "refs/tags/v${version}"; 29 hash = "sha256-se6s0sgIfMLW0sIMp/3vK4KdDPQ5ahg6OQCDAs4my4M="; 30 }; 31 32 nativeBuildInputs = [ 33 setuptools 34 ]; 35 36 propagatedBuildInputs = [ 37 asgiref 38 typing-extensions 39 ]; 40 41 nativeCheckInputs = [ 42 django 43 djangorestframework 44 graphene-django 45 pytestCheckHook 46 pytest-django 47 ]; 48 49 meta = with lib; { 50 description = "Provides a country field for Django models"; 51 longDescription = '' 52 A Django application that provides country choices for use with 53 forms, flag icons static files, and a country field for models. 54 ''; 55 homepage = "https://github.com/SmileyChris/django-countries"; 56 changelog = "https://github.com/SmileyChris/django-countries/blob/v${version}/CHANGES.rst"; 57 license = licenses.mit; 58 maintainers = with maintainers; [ hexa ]; 59 }; 60}