From 8e874423eed6c2c8945a9ebd0a0924d7e5baac9d Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Mon, 25 Nov 2024 18:39:34 +0100 Subject: [PATCH] python3Packages.django-fsm: init at 3.0.0 --- .../python-modules/django-fsm/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 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..3e4c8819020a6 --- /dev/null +++ b/pkgs/development/python-modules/django-fsm/default.nix @@ -0,0 +1,42 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + django, + python3, + django-guardian, +}: + +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 ]; + + checkInputs = [ django-guardian ]; + + checkPhase = '' + ${python3.interpreter} tests/manage.py test + ''; + + pythonImportsCheck = [ "django_fsm" ]; + + meta = { + description = "Django friendly finite state machine support"; + homepage = "https://github.com/viewflow/django-fsm"; + license = lib.licenses.mit; + knownVulnerabilities = [ "Package is marked as discontinued upstream." ]; + maintainers = [ lib.maintainers.onny ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e2def4862c7ed..0c0ed15e70372 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3440,6 +3440,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 { };