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