From 061161596c8321f55028c568cafa307d6342c259 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Wed, 13 Nov 2024 08:35:21 +0100 Subject: [PATCH] python3Packages.django-fsm: init --- .../python-modules/django-fsm/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/django-fsm/default.nix diff --git a/pkgs/development/python-modules/django-fsm/default.nix b/pkgs/development/python-modules/django-fsm/default.nix new file mode 100644 index 0000000000000..4af2c1b20ec9f --- /dev/null +++ b/pkgs/development/python-modules/django-fsm/default.nix @@ -0,0 +1,43 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + pytestCheckHook, + pytest-django, + python, + setuptools, +}: + +buildPythonPackage rec { + pname = "django-fsm"; + version = "3.0.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "viewflow"; + repo = "django-fsm"; + rev = "refs/tags/${version}"; + hash = "sha256-woN0F4hTaPk8HTGNT6zQlZDJ9SCVRut9maKSlDmalUE="; + }; + + build-system = [ setuptools ]; + + dependencies = [ django ]; + + checkPhase = '' + ${python.interpreter} manage.py test + ''; + + # django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. + # pythonImportsCheck = [ "crossdomainmedia" ]; + + doCheck = false; + + meta = { + description = "Django application to retrieve user's IP address"; + homepage = "https://github.com/stefanw/django-crossdomainmedia"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.onny ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 392e1ee6dd707..25dd159581086 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3431,6 +3431,8 @@ self: super: with self; { django-formset-js-improved = callPackage ../development/python-modules/django-formset-js-improved { }; + django-fsm = callPackage ../development/python-modules/django-fsm { }; + django-graphiql-debug-toolbar = callPackage ../development/python-modules/django-graphiql-debug-toolbar { }; django-gravatar2 = callPackage ../development/python-modules/django-gravatar2 { };