1{
2 lib,
3 buildPythonPackage,
4 django_4,
5 fetchPypi,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "django-admin-sortable2";
11 version = "2.2.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 pname = "django_admin_sortable2";
18 inherit version;
19 hash = "sha256-MKlSf5P8YbeixZVNtX2EKJMeN/Riw7RssQEFPcX1F1E=";
20 };
21
22 propagatedBuildInputs = [ django_4 ];
23
24 pythonImportsCheck = [ "adminsortable2" ];
25
26 # Tests are very slow (end-to-end with playwright)
27 doCheck = false;
28
29 meta = with lib; {
30 description = "Generic drag-and-drop ordering for objects in the Django admin interface";
31 homepage = "https://github.com/jrief/django-admin-sortable2";
32 changelog = "https://github.com/jrief/django-admin-sortable2/blob/${version}/CHANGELOG.md";
33 license = licenses.mit;
34 maintainers = with maintainers; [ sephi ];
35 };
36}