Skip to content

Commit 9b2fc49

Browse files
authored
Merge pull request #333248 from r-ryantm/auto-update/python312Packages.django-admin-sortable2
python312Packages.django-admin-sortable2: 2.2.1 -> 2.2.2
2 parents b0e5397 + 152b0f1 commit 9b2fc49

File tree

1 file changed

+17
-13
lines changed
  • pkgs/development/python-modules/django-admin-sortable2

1 file changed

+17
-13
lines changed
Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,40 @@
11
{
22
lib,
33
buildPythonPackage,
4-
django_4,
5-
fetchPypi,
64
pythonOlder,
5+
fetchFromGitHub,
6+
setuptools,
7+
django,
78
}:
89

910
buildPythonPackage rec {
1011
pname = "django-admin-sortable2";
11-
version = "2.2.1";
12-
format = "setuptools";
12+
version = "2.2.2";
13+
pyproject = true;
1314

14-
disabled = pythonOlder "3.7";
15+
disabled = pythonOlder "3.9";
1516

16-
src = fetchPypi {
17-
pname = "django_admin_sortable2";
18-
inherit version;
19-
hash = "sha256-MKlSf5P8YbeixZVNtX2EKJMeN/Riw7RssQEFPcX1F1E=";
17+
src = fetchFromGitHub {
18+
owner = "jrief";
19+
repo = "django-admin-sortable2";
20+
rev = "refs/tags/${version}";
21+
hash = "sha256-BgydzSrbEMC6fE3W9TqjedBYtxMhK/bsYexNTXnJfUo=";
2022
};
2123

22-
propagatedBuildInputs = [ django_4 ];
24+
build-system = [ setuptools ];
25+
26+
dependencies = [ django ];
2327

2428
pythonImportsCheck = [ "adminsortable2" ];
2529

2630
# Tests are very slow (end-to-end with playwright)
2731
doCheck = false;
2832

29-
meta = with lib; {
33+
meta = {
3034
description = "Generic drag-and-drop ordering for objects in the Django admin interface";
3135
homepage = "https://github.com/jrief/django-admin-sortable2";
3236
changelog = "https://github.com/jrief/django-admin-sortable2/blob/${version}/CHANGELOG.md";
33-
license = licenses.mit;
34-
maintainers = with maintainers; [ sephi ];
37+
license = lib.licenses.mit;
38+
maintainers = with lib.maintainers; [ sephi ];
3539
};
3640
}

0 commit comments

Comments
 (0)