python3Packages.django-admin-sortable2: init at 2.1.4

This commit is contained in:
Sylvain Fankhauser 2022-12-23 14:35:47 +01:00
parent 195eb9e778
commit 840fdc7c70
No known key found for this signature in database
GPG key ID: 4228AB9EC0612ADA
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ lib, buildPythonPackage, django_4, fetchPypi }:
buildPythonPackage rec {
pname = "django-admin-sortable2";
version = "2.1.4";
src = fetchPypi {
inherit version pname;
sha256 = "sha256-fcCP8PvOWFlQL4CdEIwElfOw2UYJJp6u27EjfgMISss=";
};
propagatedBuildInputs = [ django_4 ];
pythonImportsCheck = [ "adminsortable2" ];
# Tests are very slow (end-to-end with playwright)
doCheck = false;
meta = with lib; {
description = "Generic drag-and-drop ordering for objects in the Django admin interface";
homepage = "https://github.com/jrief/django-admin-sortable2";
license = licenses.mit;
maintainers = with maintainers; [ sephi ];
};
}

View file

@ -2469,6 +2469,8 @@ self: super: with self; {
# Current latest
django_4 = callPackage ../development/python-modules/django/4.nix { };
django-admin-sortable2 = callPackage ../development/python-modules/django-admin-sortable2 { };
django-allauth = callPackage ../development/python-modules/django-allauth { };
django-anymail = callPackage ../development/python-modules/django-anymail { };