From e814754121e12322ea4eae10a51013b4f136d9c9 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Wed, 31 Jul 2024 16:27:40 +0200 Subject: [PATCH] python3Packages.django-choices-field: init at 2.3.0 --- .../django-choices-field/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/django-choices-field/default.nix diff --git a/pkgs/development/python-modules/django-choices-field/default.nix b/pkgs/development/python-modules/django-choices-field/default.nix new file mode 100644 index 000000000000..ea115e5c6258 --- /dev/null +++ b/pkgs/development/python-modules/django-choices-field/default.nix @@ -0,0 +1,46 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + django, + typing-extensions, + pytestCheckHook, + pytest-cov-stub, + pytest-django, +}: + +buildPythonPackage rec { + pname = "django-choices-field"; + version = "2.3.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "bellini666"; + repo = "django-choices-field"; + rev = "v${version}"; + hash = "sha256-2oLMUM/aE4aY0eEU+CLIjTNQJAMUt/GK5Fw26QN7t34="; + }; + + build-system = [ poetry-core ]; + + dependencies = [ + django + typing-extensions + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + pytest-django + ]; + + pythonImportsCheck = [ "django_choices_field" ]; + + meta = { + description = "Django field that set/get django's new TextChoices/IntegerChoices enum"; + homepage = "https://github.com/bellini666/django-choices-field"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ minijackson ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fc2904ec43ac..33c8099475be 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3336,6 +3336,8 @@ self: super: with self; { django-celery-results = callPackage ../development/python-modules/django-celery-results { }; + django-choices-field = callPackage ../development/python-modules/django-choices-field { }; + django-ckeditor = callPackage ../development/python-modules/django-ckeditor { }; django-classy-tags = callPackage ../development/python-modules/django-classy-tags { };