1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 django, 7 typing-extensions, 8 pytestCheckHook, 9 pytest-cov-stub, 10 pytest-django, 11}: 12 13buildPythonPackage rec { 14 pname = "django-choices-field"; 15 version = "2.3.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "bellini666"; 20 repo = "django-choices-field"; 21 rev = "v${version}"; 22 hash = "sha256-2oLMUM/aE4aY0eEU+CLIjTNQJAMUt/GK5Fw26QN7t34="; 23 }; 24 25 build-system = [ poetry-core ]; 26 27 dependencies = [ 28 django 29 typing-extensions 30 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 pytest-cov-stub 35 pytest-django 36 ]; 37 38 pythonImportsCheck = [ "django_choices_field" ]; 39 40 meta = { 41 description = "Django field that set/get django's new TextChoices/IntegerChoices enum"; 42 homepage = "https://github.com/bellini666/django-choices-field"; 43 license = lib.licenses.mit; 44 maintainers = with lib.maintainers; [ minijackson ]; 45 }; 46}