Skip to content

Commit

Permalink
python3Packages.django-fsm: init at 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
onny committed Nov 25, 2024
1 parent 0fb87fe commit 8e87442
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/development/python-modules/django-fsm/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 8e87442

Please sign in to comment.