Skip to content

Commit

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

0 comments on commit 0611615

Please sign in to comment.