diff options
Diffstat (limited to 'pkgs/development/python-modules/django-admin-sortable2/default.nix')
-rw-r--r-- | pkgs/development/python-modules/django-admin-sortable2/default.nix | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/django-admin-sortable2/default.nix b/pkgs/development/python-modules/django-admin-sortable2/default.nix index ae9b84536f934..29d9e7b82689c 100644 --- a/pkgs/development/python-modules/django-admin-sortable2/default.nix +++ b/pkgs/development/python-modules/django-admin-sortable2/default.nix @@ -1,35 +1,40 @@ { lib, buildPythonPackage, - django_4, - fetchPypi, pythonOlder, + fetchFromGitHub, + setuptools, + django, }: buildPythonPackage rec { pname = "django-admin-sortable2"; - version = "2.1.10"; - format = "setuptools"; + version = "2.2.2"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.9"; - src = fetchPypi { - inherit version pname; - hash = "sha256-N1awLH0JxbN+/mV3GNWq4rdfRv0Bu/4cOdTmBlEBnXk="; + src = fetchFromGitHub { + owner = "jrief"; + repo = "django-admin-sortable2"; + rev = "refs/tags/${version}"; + hash = "sha256-BgydzSrbEMC6fE3W9TqjedBYtxMhK/bsYexNTXnJfUo="; }; - propagatedBuildInputs = [ django_4 ]; + build-system = [ setuptools ]; + + dependencies = [ django ]; pythonImportsCheck = [ "adminsortable2" ]; # Tests are very slow (end-to-end with playwright) doCheck = false; - meta = with lib; { + meta = { description = "Generic drag-and-drop ordering for objects in the Django admin interface"; homepage = "https://github.com/jrief/django-admin-sortable2"; changelog = "https://github.com/jrief/django-admin-sortable2/blob/${version}/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ sephi ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ sephi ]; }; } |