python310Packages.django-widget-tweaks: add format

- disable on unsupported Python releases
This commit is contained in:
Fabian Affolter 2023-08-26 20:04:32 +02:00 committed by GitHub
parent 21fbbe3d28
commit fc7ab50b19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}";