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 00000000000000..3e4c8819020a66 --- /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 e2def4862c7edd..0c0ed15e703725 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 { };