python3Packages.django-tables2: init at 2.4.1

This commit is contained in:
Martin Weinelt 2021-10-11 23:53:40 +02:00
parent c9881f424e
commit bf2c4da250
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, django
, tablib
, django-filter
, python
}:
buildPythonPackage rec {
pname = "django-tables2";
version = "2.4.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jieter";
repo = pname;
rev = "v${version}";
sha256 = "04vvgf18diwp0mgp14b71a0dxhgrcslv1ljybi300gvzvzjnp3qv";
};
propagatedBuildInputs = [
django
tablib
];
pythonImportsCheck = [
# Requested setting DJANGO_TABLES2_TEMPLATE, but settings are not configured.
];
doCheck = false; # needs django-boostrap{3,4} packages
# Leave this in! Discovering how to run tests is annoying in Django apps
checkPhase = ''
${python.interpreter} example/manage.py test
'';
meta = with lib; {
description = "Django app for creating HTML tables";
homepage = "https://github.com/jieter/django-tables2";
license = licenses.bsd2;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -2207,6 +2207,8 @@ in {
django-storages = callPackage ../development/python-modules/django-storages { };
django-tables2 = callPackage ../development/python-modules/django-tables2 { };
django_tagging = callPackage ../development/python-modules/django_tagging { };
django_taggit = callPackage ../development/python-modules/django_taggit { };