1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 setuptools,
7 django,
8}:
9
10buildPythonPackage rec {
11 pname = "django-admin-sortable2";
12 version = "2.2.4";
13 pyproject = true;
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchFromGitHub {
18 owner = "jrief";
19 repo = "django-admin-sortable2";
20 rev = "refs/tags/${version}";
21 hash = "sha256-WaDcDQF3Iq/UBE/tIlQFQiav6l5k6n+hKEsrcHwn+eY=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ django ];
27
28 pythonImportsCheck = [ "adminsortable2" ];
29
30 # Tests are very slow (end-to-end with playwright)
31 doCheck = false;
32
33 meta = {
34 description = "Generic drag-and-drop ordering for objects in the Django admin interface";
35 homepage = "https://github.com/jrief/django-admin-sortable2";
36 changelog = "https://github.com/jrief/django-admin-sortable2/blob/${version}/CHANGELOG.md";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ sephi ];
39 };
40}