567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
40 lines
896 B
Nix
40 lines
896 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
django,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-reversion";
|
|
version = "6.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "django_reversion";
|
|
inherit version;
|
|
hash = "sha256-yrD9kGQLLOs316iXgjynKiG5YK0dajuctONR+rvSfZw=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ django ];
|
|
|
|
# Tests assume the availability of a mysql/postgresql database
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "reversion" ];
|
|
|
|
meta = {
|
|
description = "Extension to the Django web framework that provides comprehensive version control facilities";
|
|
homepage = "https://github.com/etianen/django-reversion";
|
|
changelog = "https://github.com/etianen/django-reversion/blob/v${version}/CHANGELOG.rst";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|