From 1e8351e8f420cd423ecbeb1e2c00d8270808f37b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 26 Aug 2023 17:05:17 +0000 Subject: [PATCH 1/3] python310Packages.django-widget-tweaks: 1.4.12 -> 1.5.0 --- .../python-modules/django-widget-tweaks/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/django-widget-tweaks/default.nix b/pkgs/development/python-modules/django-widget-tweaks/default.nix index 5fd29de16107..ff9e6ca45926 100644 --- a/pkgs/development/python-modules/django-widget-tweaks/default.nix +++ b/pkgs/development/python-modules/django-widget-tweaks/default.nix @@ -14,13 +14,13 @@ buildPythonPackage rec { pname = "django-widget-tweaks"; - version = "1.4.12"; + version = "1.5.0"; src = fetchFromGitHub { # package from Pypi missing runtests.py owner = "jazzband"; repo = pname; - rev = version; - sha256 = "1rhn2skx287k6nnkxlwvl9snbia6w6z4c2rqg22hwzbz5w05b24h"; + rev = "refs/tags/${version}"; + sha256 = "sha256-/3UIsg75X3R9YGv9cEcoPw3IN2vkhUb+HCy68813d2E="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; From 21fbbe3d28a7dc3e2dbab2fc21e9205c6d492fed Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 26 Aug 2023 20:02:57 +0200 Subject: [PATCH 2/3] python310Packages.django-widget-tweaks: add changelog to meta --- .../python-modules/django-widget-tweaks/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/django-widget-tweaks/default.nix b/pkgs/development/python-modules/django-widget-tweaks/default.nix index ff9e6ca45926..19ad9b9c0327 100644 --- a/pkgs/development/python-modules/django-widget-tweaks/default.nix +++ b/pkgs/development/python-modules/django-widget-tweaks/default.nix @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "jazzband"; repo = pname; rev = "refs/tags/${version}"; - sha256 = "sha256-/3UIsg75X3R9YGv9cEcoPw3IN2vkhUb+HCy68813d2E="; + hash = "sha256-/3UIsg75X3R9YGv9cEcoPw3IN2vkhUb+HCy68813d2E="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; @@ -38,11 +38,10 @@ buildPythonPackage rec { ''; meta = with lib; { - description = "Tweak the form field rendering in templates, not in python-level form definitions."; + description = "Tweak the form field rendering in templates, not in python-level form definitions"; homepage = "https://github.com/jazzband/django-widget-tweaks"; + changelog = "https://github.com/jazzband/django-widget-tweaks/blob/${version}/CHANGES.rst"; license = licenses.mit; - maintainers = with maintainers; [ - maxxk - ]; + maintainers = with maintainers; [ maxxk ]; }; } From fc7ab50b1911aee35e19b70690b91f6e44bdec76 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 26 Aug 2023 20:04:32 +0200 Subject: [PATCH 3/3] python310Packages.django-widget-tweaks: add format - disable on unsupported Python releases --- .../python-modules/django-widget-tweaks/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/django-widget-tweaks/default.nix b/pkgs/development/python-modules/django-widget-tweaks/default.nix index 19ad9b9c0327..b77af5e47491 100644 --- a/pkgs/development/python-modules/django-widget-tweaks/default.nix +++ b/pkgs/development/python-modules/django-widget-tweaks/default.nix @@ -1,22 +1,20 @@ { lib , buildPythonPackage , fetchFromGitHub - -# native , setuptools-scm - -# propagated , django - -# tests , python +, pythonOlder }: buildPythonPackage rec { pname = "django-widget-tweaks"; version = "1.5.0"; + format = "setuptools"; - src = fetchFromGitHub { # package from Pypi missing runtests.py + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { owner = "jazzband"; repo = pname; rev = "refs/tags/${version}";