From 71a7045b3bf34713c9a18268995ddcc16ad32065 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 10 Jan 2023 14:18:47 +0100 Subject: [PATCH] python3Packages.django-admin-sortable2: add changelog to meta --- .../django-admin-sortable2/default.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/django-admin-sortable2/default.nix b/pkgs/development/python-modules/django-admin-sortable2/default.nix index 7f53c238d5d5..6301348e60ec 100644 --- a/pkgs/development/python-modules/django-admin-sortable2/default.nix +++ b/pkgs/development/python-modules/django-admin-sortable2/default.nix @@ -1,17 +1,29 @@ -{ lib, buildPythonPackage, django_4, fetchPypi }: +{ lib +, buildPythonPackage +, django_4 +, fetchPypi +, pythonOlder +}: buildPythonPackage rec { pname = "django-admin-sortable2"; version = "2.1.4"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit version pname; sha256 = "sha256-fcCP8PvOWFlQL4CdEIwElfOw2UYJJp6u27EjfgMISss="; }; - propagatedBuildInputs = [ django_4 ]; + propagatedBuildInputs = [ + django_4 + ]; - pythonImportsCheck = [ "adminsortable2" ]; + pythonImportsCheck = [ + "adminsortable2" + ]; # Tests are very slow (end-to-end with playwright) doCheck = false; @@ -19,6 +31,7 @@ buildPythonPackage rec { meta = with lib; { 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 ]; };