python310Packages.django-reversion: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-10-04 09:20:44 +02:00 committed by GitHub
parent fcab0c7453
commit 288222fff9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,23 +2,31 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, django , django
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-reversion"; pname = "django-reversion";
version = "5.0.3"; version = "5.0.3";
format = "setuptools";
src = fetchPypi { disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-rLYA+EghRzEqJ71Y5jdmqgODMQGB5IXm6qL0LSZQLJs="; hash = "sha256-rLYA+EghRzEqJ71Y5jdmqgODMQGB5IXm6qL0LSZQLJs=";
}; };
# tests assume the availability of a mysql/postgresql database propagatedBuildInputs = [
django
];
# Tests assume the availability of a mysql/postgresql database
doCheck = false; doCheck = false;
propagatedBuildInputs = [ django ]; pythonImportsCheck = [
"reversion"
pythonImportsCheck = [ "reversion" ]; ];
meta = with lib; { meta = with lib; {
description = "An extension to the Django web framework that provides comprehensive version control facilities"; description = "An extension to the Django web framework that provides comprehensive version control facilities";