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 { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
# native
, setuptools-scm , setuptools-scm
# propagated
, django , django
# tests
, python , python
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-widget-tweaks"; pname = "django-widget-tweaks";
version = "1.5.0"; version = "1.5.0";
format = "setuptools";
src = fetchFromGitHub { # package from Pypi missing runtests.py disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jazzband"; owner = "jazzband";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";