From fc7ab50b1911aee35e19b70690b91f6e44bdec76 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 26 Aug 2023 20:04:32 +0200 Subject: [PATCH] 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}";